diff options
author | Thomas Keck <thomas@macbook.macbook> | 2010-03-13 16:19:20 +0100 |
---|---|---|
committer | Thomas Keck <thomas@macbook.macbook> | 2010-03-13 16:19:20 +0100 |
commit | 94e33924fad7b7a38d6d1e848d01b5e830a45360 (patch) | |
tree | b08a8651d4ef44c4b39193b54ab5683bef453658 /proxy.py | |
parent | a0297c212e5a9a4c2c478e538c23ddd0e96ac56e (diff) | |
download | magicproxy-94e33924fad7b7a38d6d1e848d01b5e830a45360.tar.gz magicproxy-94e33924fad7b7a38d6d1e848d01b5e830a45360.zip |
First setting implemented
Diffstat (limited to 'proxy.py')
-rwxr-xr-x | proxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = min(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) ) |