Fix updatecallback to show first progress step

This commit is contained in:
prculley 2017-01-17 08:42:22 -06:00
parent 659329c879
commit 99b7fc8815

View File

@ -72,7 +72,7 @@ class UpdateCallback:
Reset the count to zero.
"""
self.count = 0
self.oldval = 0
self.oldval = -1
self.oldtime = 0
self.text = text
@ -96,7 +96,7 @@ class UpdateCallback:
Called when the count is updated.
"""
self.count += 1
if not count:
if count is None:
count = self.count
newval = int(100 * count/self.total)
newtime = time.time()