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): def format_bytes(size):
size = int(size) size = int(size)
# 2**10 = 1024 # 2**10 = 1024
power = 1000 power = 1024
n = 0 n = 0
power_labels = {0 : '', 1: 'K', 2: 'M', 3: 'G', 4: 'T'} power_labels = {0 : '', 1: 'K', 2: 'M', 3: 'G', 4: 'T'}
while size > power: while size > power: