summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-03-08 15:33:22 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-03-08 15:33:22 +0100
commit981bc7efe7d78931adf0e3daa7375ec9e84214be (patch)
tree4ea5b9bee8ddbc9cd29e8f21b42465d1531aebf8
parentDefault Back (diff)
downloadpyload-981bc7efe7d78931adf0e3daa7375ec9e84214be.tar.xz
speed manager fix
-rw-r--r--module/thread_list.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/thread_list.py b/module/thread_list.py
index d8a05a41d..13dba309e 100644
--- a/module/thread_list.py
+++ b/module/thread_list.py
@@ -294,11 +294,13 @@ class Thread_List(object):
if speed[2].plugin.req.isSlow:
slowCount += 1
slowSpeed += speed[2].plugin.req.maxSpeed/1024
-
+ stat = {}
stat["slow_downloads"] = slowCount
stat["each_speed"] = eachSpeed
eachSpeed = (maxSpeed - slowSpeed) / (threadCount - slowCount)
stat["each_speed_optimized"] = eachSpeed
+ self.stat = stat
+
for speed in speeds:
if speed[2].plugin.req.isSlow:
continue