diff --git a/conans/client/tools/files.py b/conans/client/tools/files.py index 8f75d12e0c5..8096b4f5e84 100644 --- a/conans/client/tools/files.py +++ b/conans/client/tools/files.py @@ -13,6 +13,8 @@ _global_output = None +UNIT_SIZE = 1000.0 + @contextmanager def chdir(newdir): @@ -35,9 +37,9 @@ def human_size(size_bytes): num = float(size_bytes) for suffix, precision in suffixes_table: - if num < 1024.0: + if num < UNIT_SIZE: break - num /= 1024.0 + num /= UNIT_SIZE if precision == 0: formatted_size = "%d" % num