Change to binary prefixes in progress.py

This commit is contained in:
amartya-dev 2020-10-04 01:06:50 +05:30
parent bb1153a13d
commit b250d25e9a
1 changed files with 1 additions and 1 deletions

View File

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