From 5ff6f2ca22648b537343a19038caa32378cffeac Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 16 Nov 2017 08:27:51 -0800 Subject: [PATCH] fix TIMEOUT calculation --- xwords4/linux/scripts/discon_ok2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xwords4/linux/scripts/discon_ok2.py b/xwords4/linux/scripts/discon_ok2.py index 82bfa6c33..87c1d5c52 100755 --- a/xwords4/linux/scripts/discon_ok2.py +++ b/xwords4/linux/scripts/discon_ok2.py @@ -900,9 +900,8 @@ def parseArgs(): def assignDefaults(args): if not args.NROOMS: args.NROOMS = args.NGAMES - if args.TIMEOUT: args.TIMEOUT = 100000000000 # huge number + args.TIMEOUT = not args.TIMEOUT and (args.NGAMES * 60 + 500) or 100000000000 if len(args.DICTS) == 0: args.DICTS.append('CollegeEng_2to8.xwd') - else: args.TIMEOUT = args.NGAMES * 60 + 500 args.LOGDIR = os.path.basename(sys.argv[0]) + '_logs' # Move an existing logdir aside if os.path.exists(args.LOGDIR):