diff --git a/code/templates/client.py b/code/templates/client.py index 50e4c0b..9af161c 100644 --- a/code/templates/client.py +++ b/code/templates/client.py @@ -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 += "/"