From 74e723032f485a1e145946d5478765a8f0da7959 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sun, 30 Nov 2014 16:04:15 +0000 Subject: [PATCH] Pretend mebibytes are megabytes --- syncplay/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/utils.py b/syncplay/utils.py index d3ab921..165330e 100644 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -99,7 +99,7 @@ def formatSize (bytes, precise=False): if bytes == 0: # E.g. when file size privacy is enabled return "???" try: - megabytes = int(bytes) / 1000000.0 + megabytes = int(bytes) / 1048576.0 # Technically this is a mebibyte, but whatever if precise: megabytes = round(megabytes, 1) else: