Fix machine-readable progress when maxval==None

This commit is contained in:
Garrett Holmstrom
2015-07-15 16:38:16 -07:00
parent 3ba71b62ea
commit 8d0707ce6c

View File

@@ -182,7 +182,8 @@ class _MachineReadableCounter(object):
self._last_updated = time.time()
def finish(self):
self.currval = self.maxval
if self.maxval:
self.currval = self.maxval
self._display()
self._finished = True