From b250d25e9a5168d45cc98e4c18f0dbabd834fece Mon Sep 17 00:00:00 2001 From: amartya-dev Date: Sun, 4 Oct 2020 01:06:50 +0530 Subject: [PATCH] Change to binary prefixes in progress.py --- rich/progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/progress.py b/rich/progress.py index 947f482c..7824a5f2 100644 --- a/rich/progress.py +++ b/rich/progress.py @@ -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