clarify old app start percentage option

This commit is contained in:
Eric House 2024-01-05 12:58:58 -08:00
parent f58c567492
commit 24e1085b30

View file

@ -210,7 +210,7 @@ class Device():
# first time?
if not self.app:
pct = random.randint(0,99)
if pct < self.args.START_PCT:
if pct < self.args.OLD_START_PCT:
self.app = self.args.APP_OLD
else:
self.app = self.args.APP_NEW
@ -684,8 +684,8 @@ def mkParser():
help = 'the app we\'ll use')
parser.add_argument('--app-old', dest = 'APP_OLD', default = './obj_linux_memdbg/xwords',
help = 'the app we\'ll upgrade from')
parser.add_argument('--start-pct', dest = 'START_PCT', default = 50, type = int,
help = 'odds of starting with the new app, 0 <= n < 100')
parser.add_argument('--old-start-pct', dest = 'OLD_START_PCT', default = 90, type = int,
help = 'odds of starting with the old app, 0 <= n < 100')
parser.add_argument('--upgrade-pct', dest = 'UPGRADE_PCT', default = 0, type = int,
help = 'odds of upgrading at any launch, 0 <= n < 100')