should fix format_bytes or something

This commit is contained in:
blank X 2020-10-31 21:59:35 +07:00
parent 2411df9e81
commit d69ebc2516
1 changed files with 1 additions and 1 deletions

View File

@ -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: