summaryrefslogtreecommitdiffstats
path: root/module/api/CoreApi.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-12 12:49:42 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-12 12:49:42 +0100
commit6232db5a1d3b8b5e4412af67d5bc7ca65f94333c (patch)
tree02a95e1216ace355d84a9704fb9070bd744b17c2 /module/api/CoreApi.py
parentadded missing file (diff)
downloadpyload-6232db5a1d3b8b5e4412af67d5bc7ca65f94333c.tar.xz
renamed most events, push events to webui
Diffstat (limited to 'module/api/CoreApi.py')
-rw-r--r--module/api/CoreApi.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/api/CoreApi.py b/module/api/CoreApi.py
index 9338954d0..a86197813 100644
--- a/module/api/CoreApi.py
+++ b/module/api/CoreApi.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-from module.Api import Api, RequirePerm, Permission, ServerStatus, PackageStats
+from module.Api import Api, RequirePerm, Permission, ServerStatus
from module.utils.fs import join, free_space
from module.utils import compare_time
@@ -32,7 +32,8 @@ class CoreApi(ApiComponent):
total = self.core.files.getDownloadStats(self.primaryUID)
serverStatus = ServerStatus(0,
- PackageStats(total[0], total[0] - queue[0], total[1], total[1] - queue[1]),
+ total[0], queue[0],
+ total[1], queue[1],
0,
not self.core.threadManager.pause and self.isTimeDownload(),
self.core.threadManager.pause,