Pretend mebibytes are megabytes
This commit is contained in:
parent
7ca29bf30b
commit
74e723032f
@ -99,7 +99,7 @@ def formatSize (bytes, precise=False):
|
|||||||
if bytes == 0: # E.g. when file size privacy is enabled
|
if bytes == 0: # E.g. when file size privacy is enabled
|
||||||
return "???"
|
return "???"
|
||||||
try:
|
try:
|
||||||
megabytes = int(bytes) / 1000000.0
|
megabytes = int(bytes) / 1048576.0 # Technically this is a mebibyte, but whatever
|
||||||
if precise:
|
if precise:
|
||||||
megabytes = round(megabytes, 1)
|
megabytes = round(megabytes, 1)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user