From fb0807c14b4a01a92eda171231463ace228d49e3 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 19 Mar 2021 12:39:39 -0700 Subject: [PATCH] fix so 0-percent works --- xwords4/linux/scripts/discon_ok2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/linux/scripts/discon_ok2.py b/xwords4/linux/scripts/discon_ok2.py index e3a6f25d9..4e121a4b4 100755 --- a/xwords4/linux/scripts/discon_ok2.py +++ b/xwords4/linux/scripts/discon_ok2.py @@ -213,7 +213,7 @@ class Device(): def setApp(self, pct): if self.app == self.args.APP_OLD and not self.app == self.args.APP_NEW: - if os.path.exists(self.script) and pct >= random.randint(0, 99): + if os.path.exists(self.script) and pct > random.randint(0, 99): print('launch(): upgrading {} from {} to {}' \ .format(self.devName(), self.app, self.args.APP_NEW)) self.app = self.args.APP_NEW