Dirty fix for doubling rate-limit
This commit is contained in:
parent
bd4e40df1a
commit
79d0a746c3
@ -146,7 +146,7 @@ class FileDownloader(object):
|
||||
|
||||
def slow_down(self, start_time, byte_counter):
|
||||
"""Sleep if the download speed is over the rate limit."""
|
||||
rate_limit = self.params.get('ratelimit', None)
|
||||
rate_limit = self.params.get('ratelimit', None)/2
|
||||
if rate_limit is None or byte_counter == 0:
|
||||
return
|
||||
now = time.time()
|
||||
|
Loading…
x
Reference in New Issue
Block a user