This commit is contained in:
Oskar Thoren 2019-10-16 14:21:17 +08:00
parent fea47d3b07
commit 9232b18733
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class bcolors:
def sizeof_fmt(num):
for x in ['bytes','KB','MB','GB','TB']:
if num < 1024.0:
return "%3.1f%s" % (num, x)
return "%6.1f%s" % (num, x)
num /= 1024.0
def magnitude_fmt(num):