Dirty fix for doubling rate-limit

This commit is contained in:
iggyvolz 2014-10-13 16:55:30 -04:00
parent bd4e40df1a
commit 79d0a746c3

View File

@ -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()