mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-06-07 01:43:00 +03:00
fix
This commit is contained in:
parent
72b6213410
commit
a8d4c110ec
@ -1176,7 +1176,7 @@ class ZfsNode(ExecuteNode):
|
|||||||
bytes_left=self._progress_total_bytes-bytes
|
bytes_left=self._progress_total_bytes-bytes
|
||||||
minutes_left=int((bytes_left/(bytes/(time.time()-self._progress_start_time)))/60)
|
minutes_left=int((bytes_left/(bytes/(time.time()-self._progress_start_time)))/60)
|
||||||
|
|
||||||
print(">>> {}% {}MB/s (total {}MB, {} minutes left) \r".format(percentage, speed, self._progress_total_bytes/(1024*1024), minutes_left), end='')
|
print(">>> {}% {}MB/s (total {}MB, {} minutes left) \r".format(percentage, speed, int(self._progress_total_bytes/(1024*1024)), minutes_left), end='')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user