From 52ba83f29d9221c05434857e79f12c44752a321e Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 28 Dec 2010 22:51:10 +0100 Subject: more fixes and chunk+resume debug --- module/network/Bucket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/network/Bucket.py') 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() -- cgit v1.2.3