From d69ebc2516f97e45cbd061c6584915c6ebcabc04 Mon Sep 17 00:00:00 2001 From: blank X Date: Sat, 31 Oct 2020 21:59:35 +0700 Subject: [PATCH] should fix format_bytes or something --- sukuinote/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sukuinote/__init__.py b/sukuinote/__init__.py index 8f50968..b9bef72 100644 --- a/sukuinote/__init__.py +++ b/sukuinote/__init__.py @@ -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: