summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
authorYves <yvesf-git@xapek.org>2010-03-16 22:58:03 +0100
committerYves <yvesf-git@xapek.org>2010-03-16 22:58:03 +0100
commit75041878bd789d2b14d3ccebcb0eaeca2c3a6aca (patch)
treea16a349453287ad92f9b0c85d9d6775f4759b745 /proxy.py
parenta0297c212e5a9a4c2c478e538c23ddd0e96ac56e (diff)
downloadmagicproxy-75041878bd789d2b14d3ccebcb0eaeca2c3a6aca.tar.gz
magicproxy-75041878bd789d2b14d3ccebcb0eaeca2c3a6aca.zip
revert
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 da30636..b0f31e8 100755
--- a/proxy.py
+++ b/proxy.py
@@ -122,7 +122,7 @@ class MultipleProxyReader(object):
and self.fetch_pos + 1 < self.content_length and not self.channel.is_closed \
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 finishing his jobs
- blocksize = min(TIME_SLICE * int(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) )