From bf8e96010d04f9ac660dc9a9e194d2304127789e Mon Sep 17 00:00:00 2001 From: Daniel Ahn Date: Tue, 24 Jul 2018 08:58:14 -0700 Subject: [PATCH] fix numOfBytes variable name not changed in the rest of the function call --- syncplay/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syncplay/utils.py b/syncplay/utils.py index 4331b8f..b9eafa8 100755 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -127,11 +127,11 @@ def formatTime(timeInSeconds, weeksAsTitles=True): return formattedTime -def formatSize(num_of_bytes, precise=False): - if bytes == 0: # E.g. when file size privacy is enabled +def formatSize(numOfBytes, precise=False): + if numOfBytes == 0: # E.g. when file size privacy is enabled return "???" try: - megabytes = int(bytes) / 1048576.0 # Technically this is a mebibyte, but whatever + megabytes = int(numOfBytes) / 1048576.0 # Technically this is a mebibyte, but whatever if precise: megabytes = round(megabytes, 1) else: