From 9e312e8dba385be00fecff315d595077642db4f3 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 13 Aug 2017 11:36:12 +0200 Subject: [PATCH] Uploader: Do not show timeout for larger binaries when everything is still as expected. --- Tools/px_uploader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index 9baa8b7f3d..a8f0b7ed44 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -343,13 +343,13 @@ class uploader(object): uploader.EOC) # erase is very slow, give it 20s - deadline = time.time() + 20.0 + deadline = time.time() + 30.0 while time.time() < deadline: # Draw progress bar (erase usually takes about 9 seconds to complete) estimatedTimeRemaining = deadline-time.time() if estimatedTimeRemaining >= 9.0: - self.__drawProgressBar(label, 20.0-estimatedTimeRemaining, 9.0) + self.__drawProgressBar(label, 30.0-estimatedTimeRemaining, 9.0) else: self.__drawProgressBar(label, 10.0, 10.0) sys.stdout.write(" (timeout: %d seconds) " % int(deadline-time.time()))