From 3f23a2c814bffea6bb6709928dd2174452644943 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 13 Jul 2011 00:08:40 +0200 Subject: fixes for last commit --- module/Api.py | 2 +- module/plugins/hooks/IRCInterface.py | 2 +- module/web/templates/default/base.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/Api.py b/module/Api.py index 5328fb617..1440f485e 100644 --- a/module/Api.py +++ b/module/Api.py @@ -159,7 +159,7 @@ class Api(Iface): not self.core.threadManager.pause and self.isTimeDownload(), self.core.config['reconnect']['activated'] and self.isTimeReconnect()) - for pyfile in [x.active for x in self.core.threadManager.threads if x.active and isinstance(x, PyFile)]: + for pyfile in [x.active for x in self.core.threadManager.threads if x.active and isinstance(x.active, PyFile)]: serverStatus.speed += pyfile.getSpeed() #bytes/s return serverStatus diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py index ae0a51385..5259d8ccb 100644 --- a/module/plugins/hooks/IRCInterface.py +++ b/module/plugins/hooks/IRCInterface.py @@ -53,7 +53,7 @@ class IRCInterface(Thread, Hook): Thread.__init__(self) Hook.__init__(self, core, manager) self.setDaemon(True) - #self.sm = core.server_methods + # self.sm = core.server_methods self.api = core.api #todo, only use api def coreReady(self): diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 13538cf08..c247a7dc8 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -85,7 +85,7 @@ document.addEvent("domready", function(){ function LoadJsonToContent(data) { - $("speed").set('text', Math.round(data.speed*100)/100); + $("speed").set('text', humanFileSize(data.speed)+"/s"); $("aktiv").set('text', data.active); $("aktiv_from").set('text', data.queue); $("aktiv_total").set('text', data.total); @@ -256,7 +256,7 @@ function AddBox(){ -- cgit v1.2.3