diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-28 22:51:10 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-28 22:51:10 +0100 |
commit | 52ba83f29d9221c05434857e79f12c44752a321e (patch) | |
tree | 42369d33d8b0116524e26c429c649ec40cec516a /module/network/Bucket.py | |
parent | working speedlimit + proxy support, closed #197 (diff) | |
download | pyload-52ba83f29d9221c05434857e79f12c44752a321e.tar.xz |
more fixes and chunk+resume debug
Diffstat (limited to 'module/network/Bucket.py')
-rw-r--r-- | module/network/Bucket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/Bucket.py b/module/network/Bucket.py index 60d8a757a..1a2d77409 100644 --- a/module/network/Bucket.py +++ b/module/network/Bucket.py @@ -34,7 +34,7 @@ class Bucket: def consumed(self, amount): """ return time the process have to sleep, after consumed specified amount """ - if self.rate < 0: return 0 + if self.rate < 10240: return 0 #min. 10kb, may become unresponsive otherwise self.lock.acquire() self.calc_tokens() |