diff --git a/ia-upload-stream b/ia-upload-stream index 9f76d94..c82bbc5 100755 --- a/ia-upload-stream +++ b/ia-upload-stream @@ -310,9 +310,9 @@ def main(): except ValueError: pass if x.endswith('M'): - return int(x[:-1]) * 1024 ** 2 + return int(float(x[:-1]) * 1024 ** 2) elif x.endswith('G'): - return int(x[:-1]) * 1024 ** 3 + return int(float(x[:-1]) * 1024 ** 3) raise ValueError def parts(x):