summaryrefslogtreecommitdiffstats
path: root/module/gui/Overview.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-21 16:43:22 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-21 16:43:22 +0200
commit79ce6f862285f355455119d64d8aa1753cff0470 (patch)
tree238b2f309d2f90cb9c3d722b15748b45a6e5d6d1 /module/gui/Overview.py
parentyourfiles.biz fix (diff)
downloadpyload-79ce6f862285f355455119d64d8aa1753cff0470.tar.xz
royflos GUI patches, prefix option for webinterface (
Diffstat (limited to 'module/gui/Overview.py')
-rw-r--r--module/gui/Overview.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/module/gui/Overview.py b/module/gui/Overview.py
index 50e9dd618..ee05d92e9 100644
--- a/module/gui/Overview.py
+++ b/module/gui/Overview.py
@@ -19,16 +19,8 @@
from PyQt4.QtCore import *
from PyQt4.QtGui import *
-from time import sleep, time
-def formatSpeed(speed):
- speed = int(speed)
- steps = 0
- sizes = ["B/s", "KiB/s", "MiB/s", "GiB/s"]
- while speed > 1000:
- speed /= 1024.0
- steps += 1
- return "%.2f %s" % (speed, sizes[steps])
+from module.utils import formatSpeed
class OverviewModel(QAbstractListModel):
PackageName = 10