From 49f9be7d6f29add47cd72bf2b9ef506baa746079 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 8 Jul 2019 16:31:34 -0300 Subject: Pass parameters to --monitor-disk and --monitor-memory --- grab-queue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grab-queue b/grab-queue index 11c4343..dbdc030 100755 --- a/grab-queue +++ b/grab-queue @@ -34,7 +34,7 @@ from tqdm import tqdm class DownloadMultiple: """Downloads multiple files simultaneously with error logging and fancy output""" - def __init__(self, limit_concurrent = 5, progress = True, debug = False, downloader = 'grab-site --no-offsite-links --wpull-args="--monitor-disk --monitor-memory"'): + def __init__(self, limit_concurrent = 5, progress = True, debug = False, downloader = 'grab-site --no-offsite-links --wpull-args="--monitor-disk 5000m --monitor-memory 500m"'): # Check for grab-site downloader_bin = downloader.split(' ')[0] if '/' in downloader_bin and not os.path.exists(downloader_bin): @@ -203,7 +203,7 @@ class GrabQueue: if args.downloader == None: #args.downloader = '/usr/bin/wget' - args.downloader = 'grab-site --no-offsite-links --wpull-args="--monitor-disk --monitor-memory"' + args.downloader = 'grab-site --no-offsite-links --wpull-args="--monitor-disk 5000m --monitor-memory 500m"' self.download = DownloadMultiple(self.limit_concurrent, self.progress, self.debug, args.downloader) -- cgit v1.2.3