summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fb.py b/fb.py
index 44b4461..4f6868a 100755
--- a/fb.py
+++ b/fb.py
@@ -277,12 +277,12 @@ class ProgressBar:
self.progressData["ulGlobalTotal"] = value
def reset(self):
- self.progressData["ulGlobalTotal"] = 0
+ self.progressData["ulGlobalTotal"] = -1
self.progressData["ulGlobal"] = 0
def progress(self, dltotal, dlnow, ultotal, ulnow):
data = self.progressData
- assert data["ulGlobalTotal"] > 0
+ assert data["ulGlobalTotal"] > -1
if not self.display_progress:
return