Skip to content

Commit 289c2fe

Browse files
committed
fix decimal point for human readable size
1 parent f630f5d commit 289c2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index_generator/models/entries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def sizeof_fmt(num, suffix='B'):
55
for unit in ['','Ki','Mi','Gi','Ti','Pi','Ei','Zi']:
66
if abs(num) < 1024.0:
7-
if suffix == 'B':
7+
if unit == '':
88
return '%3.0f %s%s' % (num, unit, suffix)
99
else:
1010
return '%3.1f %s%s' % (num, unit, suffix)

0 commit comments

Comments
 (0)