From 976cb66b250837dc4e8d058f0d8eca71ad7efe14 Mon Sep 17 00:00:00 2001
From: RaNaN <Mast3rRaNaN@hotmail.de>
Date: Mon, 8 Mar 2010 15:31:56 +0100
Subject: speed manager fix

---
 module/thread_list.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'module/thread_list.py')

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
-- 
cgit v1.2.3