summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-19 17:13:35 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-19 17:13:35 +0200
commit0c8dc650e52323f741bdaf50a864f1ebd819e6c6 (patch)
tree204b85ba411fde2b8da79493c75002253f3ee628 /pyLoadCore.py
parentsome webinterface functions (diff)
downloadpyload-0c8dc650e52323f741bdaf50a864f1ebd819e6c6.tar.xz
webinterface statusbar
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 8fa737c53..b92d61114 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -250,6 +250,11 @@ class Core(object):
status = {}
status['pause'] = self.thread_list.pause
status['queue'] = len(self.file_list.files)
+ status['speed'] = 0
+
+ for pyfile in self.thread_list.py_downloading:
+ status['speed'] += pyfile.status.get_speed()
+
return status
def init_server(self):