should fix format_bytes or something
This commit is contained in:
parent
2411df9e81
commit
d69ebc2516
|
@ -129,7 +129,7 @@ def public_log_errors(func):
|
|||
def format_bytes(size):
|
||||
size = int(size)
|
||||
# 2**10 = 1024
|
||||
power = 1000
|
||||
power = 1024
|
||||
n = 0
|
||||
power_labels = {0 : '', 1: 'K', 2: 'M', 3: 'G', 4: 'T'}
|
||||
while size > power:
|
||||
|
|
Loading…
Reference in New Issue