fix create progress not updating if clock jumps

This commit is contained in:
Marian Beermann 2016-10-30 18:18:23 +01:00
parent 420c984f05
commit 2dc558a02e

View file

@ -219,7 +219,7 @@ class Statistics:
return format_file_size(self.csize)
def show_progress(self, item=None, final=False, stream=None, dt=None):
now = time.time()
now = time.monotonic()
if dt is None or now - self.last_progress > dt:
self.last_progress = now
columns, lines = get_terminal_size()