ソースを参照

Support float values for --partsize with M or G suffix

master
JustAnotherArchivist 2年前
コミット
fdc3c3d69e
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      ia-upload-stream

+ 2
- 2
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):


読み込み中…
キャンセル
保存