mirror of https://github.com/Textualize/rich.git
Change to binary prefixes in progress.py
This commit is contained in:
parent
bb1153a13d
commit
b250d25e9a
|
@ -299,7 +299,7 @@ class DownloadColumn(ProgressColumn):
|
|||
completed = int(task.completed)
|
||||
total = int(task.total)
|
||||
unit, suffix = filesize.pick_unit_and_suffix(
|
||||
total, ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], 1024
|
||||
total, ["bytes", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"], 1024
|
||||
)
|
||||
completed_ratio = completed / unit
|
||||
total_ratio = total / unit
|
||||
|
|
Loading…
Reference in New Issue