From 542cef9434db23a7fe0a39a0e87182f5d7f6ca90 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 14 Oct 2018 01:18:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20curl=20speed-limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/downloadWithCurl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdn/downloadWithCurl.ts b/src/cdn/downloadWithCurl.ts index 3caec12..8866ee5 100644 --- a/src/cdn/downloadWithCurl.ts +++ b/src/cdn/downloadWithCurl.ts @@ -12,7 +12,7 @@ export default function downloadWithCurl({ host, path, tempFileName }: {host: st //... '--silent', '--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', '--output', tempFileName, url,