mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
clarify old app start percentage option
This commit is contained in:
parent
f58c567492
commit
24e1085b30
1 changed files with 3 additions and 3 deletions
|
@ -210,7 +210,7 @@ class Device():
|
||||||
# first time?
|
# first time?
|
||||||
if not self.app:
|
if not self.app:
|
||||||
pct = random.randint(0,99)
|
pct = random.randint(0,99)
|
||||||
if pct < self.args.START_PCT:
|
if pct < self.args.OLD_START_PCT:
|
||||||
self.app = self.args.APP_OLD
|
self.app = self.args.APP_OLD
|
||||||
else:
|
else:
|
||||||
self.app = self.args.APP_NEW
|
self.app = self.args.APP_NEW
|
||||||
|
@ -684,8 +684,8 @@ def mkParser():
|
||||||
help = 'the app we\'ll use')
|
help = 'the app we\'ll use')
|
||||||
parser.add_argument('--app-old', dest = 'APP_OLD', default = './obj_linux_memdbg/xwords',
|
parser.add_argument('--app-old', dest = 'APP_OLD', default = './obj_linux_memdbg/xwords',
|
||||||
help = 'the app we\'ll upgrade from')
|
help = 'the app we\'ll upgrade from')
|
||||||
parser.add_argument('--start-pct', dest = 'START_PCT', default = 50, type = int,
|
parser.add_argument('--old-start-pct', dest = 'OLD_START_PCT', default = 90, type = int,
|
||||||
help = 'odds of starting with the new app, 0 <= n < 100')
|
help = 'odds of starting with the old app, 0 <= n < 100')
|
||||||
parser.add_argument('--upgrade-pct', dest = 'UPGRADE_PCT', default = 0, type = int,
|
parser.add_argument('--upgrade-pct', dest = 'UPGRADE_PCT', default = 0, type = int,
|
||||||
help = 'odds of upgrading at any launch, 0 <= n < 100')
|
help = 'odds of upgrading at any launch, 0 <= n < 100')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue