summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.py')
-rwxr-xr-xproxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy.py b/proxy.py
index 393082f..ee5d083 100755
--- a/proxy.py
+++ b/proxy.py
@@ -132,7 +132,7 @@ class MagicHTTPProxyClient(object):
and self.fetch_pos + 1 < self.content_length and self.channel.connected \
and len( filter(lambda f: f.proxy == fetcher.proxy, self.fetchers) ) < 2:
#Start a new fetcher on this line if this fetchers is X-Bytes before finished his job
- blocksize = min(int(TIME_SLICE * fetcher.speed()), MIN_BLOCKSIZE)
+ blocksize = max(int(TIME_SLICE * fetcher.speed()), MIN_BLOCKSIZE)
fetch_range = self.next_range(blocksize)
print "Start new Fetcher, bs=%s range=%s" % (blocksize,fetch_range)
self.fetchers.append( Fetcher(self, fetcher.proxy, self.url, self.header, fetch_range) )