🐛 Fix curl speed-limit
This commit is contained in:
parent
a4698d07ab
commit
542cef9434
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export default function downloadWithCurl({ host, path, tempFileName }: {host: st
|
||||||
//...
|
//...
|
||||||
'--silent',
|
'--silent',
|
||||||
'--limit-rate', '30m', //maximum speed of 30 MB/s = 240 MBit/s
|
'--limit-rate', '30m', //maximum speed of 30 MB/s = 240 MBit/s
|
||||||
'--speed-limit', String(100 * 1024 * 1024), //abort if less than 100 MB in 15 seconds
|
'--speed-limit', String(100 * 1024 * 1024 / 15), //abort if less than 100 MB in 15 seconds
|
||||||
'--speed-time', '15',
|
'--speed-time', '15',
|
||||||
'--output', tempFileName,
|
'--output', tempFileName,
|
||||||
url,
|
url,
|
||||||
|
|
Loading…
Reference in a new issue