Skip to content

Commit d9b1909

Browse files
committed
increase code coverage
1 parent c15c301 commit d9b1909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ttpassgen/ttpassgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def pretty_size(size_bytes):
104104
# on Mac/Linux, 1KB=1024B.
105105
# see more: https://en.wikipedia.org/wiki/Gigabyte#Consumer_confusion
106106
base = 1000
107-
base = 1024 if os.name == 'nt' else 1024
107+
base = 1024 if os.name == 'nt' else 1000
108108
size_name = ("Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
109109
i = int(math.floor(math.log(size_bytes, base)))
110110
p = math.pow(base, i)

0 commit comments

Comments
 (0)