Explorar o código

fix create progress not updating if clock jumps

Marian Beermann %!s(int64=8) %!d(string=hai) anos
pai
achega
2dc558a02e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      borg/helpers.py

+ 1 - 1
borg/helpers.py

@@ -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()