Skip to content

Commit

Permalink
collect.py: reduce profiles.json download rate
Browse files Browse the repository at this point in the history
The openwrt server might impose download rate limiting.

Signed-off-by: Moritz Warning <moritzwarning@web.de>
  • Loading branch information
mwarning committed Oct 13, 2023
1 parent 0d1d949 commit 25cd11e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
Expand All @@ -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
)
)
Expand Down

0 comments on commit 25cd11e

Please sign in to comment.