summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPChunk.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-30 18:20:44 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-30 18:20:44 +0100
commit371ed3e634a9de63d9a5a707a033541272f67437 (patch)
treec382ebc95c970adab002339063a789c62dcec10f /module/network/HTTPChunk.py
parentimproved performance for wlan (diff)
downloadpyload-371ed3e634a9de63d9a5a707a033541272f67437.tar.xz
MU premium lifetime fix
Diffstat (limited to 'module/network/HTTPChunk.py')
-rw-r--r--module/network/HTTPChunk.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index dee185342..1cc9841a6 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -182,10 +182,9 @@ class HTTPChunk(HTTPRequest):
if self.p.bucket:
sleep(self.p.bucket.consumed(size))
- else: #@TODO nice to have: traffic sharping algr. which calculates sleep time to reduce cpu load
- if size < 5000:
- #sleep if chunk size gets low, to avoid many function calls and hope chunksize gets bigger
- sleep(0.007)
+ elif size < 5000: #@TODO nice to have: traffic sharping algr. which calculates sleep time to reduce cpu load
+ #sleep if chunk size gets low, to avoid many function calls and hope chunksize gets bigger
+ sleep(0.007)
if self.range and self.arrived > (self.range[1]-self.range[0]):
return 0 #close if we have enough data