From 25cd11e0df25acb1ff408c2f1a89dd609cf6b0f5 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Fri, 13 Oct 2023 12:44:21 +0200 Subject: [PATCH] collect.py: reduce profiles.json download rate The openwrt server might impose download rate limiting. Signed-off-by: Moritz Warning --- misc/collect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/collect.py b/misc/collect.py index c8d0d563..4a62bea5 100755 --- a/misc/collect.py +++ b/misc/collect.py @@ -213,7 +213,7 @@ def use_wget(args): with tempfile.TemporaryDirectory() as tmp_path: # download all profiles.json files os.system( - 'wget -c -r -P {} -A "profiles.json" --limit-rate=8M --reject-regex "kmods|packages" --no-parent {}'.format( + 'wget -c -r -P {} -A "profiles.json" --limit-rate=1M --reject-regex "kmods|packages" --no-parent {}'.format( tmp_path, args.release_src ) ) @@ -234,7 +234,7 @@ def use_rsync(args): with tempfile.TemporaryDirectory() as tmp_path: # download all profiles.json files os.system( - 'rsync --bwlimit="8M" --del -m -r -t -v --include="*/" --include="profiles.json" --exclude="*" {} {}'.format( + 'rsync --bwlimit=1M --del -m -r -t -v --include="*/" --include="profiles.json" --exclude="*" {} {}'.format( args.release_src, tmp_path ) )