bug in float/int

This commit is contained in:
Ville Rantanen
2018-04-18 10:19:10 +03:00
parent 3627ad475a
commit d52ba606ab

View File

@@ -154,7 +154,7 @@ def menu_upload(opts):
if f.startswith("."):
continue
if os.path.isfile(f):
file_size = round(os.path.getsize(f) / 1024 / 1024, 2)
file_size = round(float(os.path.getsize(f)) / 1024 / 1024, 2)
else:
file_size = "[DIR]"
f += "/"