From c562a5498e2f73f5bb9d4485abec9d929a69428a Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sat, 19 Feb 2022 14:28:11 -0600 Subject: [PATCH] Fixed calculation of petabytes --- updater/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/utils.py b/updater/utils.py index 0b9f7b9..6b59868 100644 --- a/updater/utils.py +++ b/updater/utils.py @@ -9,7 +9,7 @@ def convert_bytes(n: float) -> str: """ K, M, G, T, P = 1 << 10, 1 << 20, 1 << 30, 1 << 40, 1 << 50 if n >= P: - return "%.2fPb" % (float(n) / T) + return "%.2fPb" % (float(n) / P) elif n >= T: return "%.2fTb" % (float(n) / T) elif n >= G: