summaryrefslogtreecommitdiffstats
path: root/module/gui/Overview.py
diff options
context:
space:
mode:
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