diff options
author | mkaay <mkaay@mkaay.de> | 2011-01-26 16:03:18 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-01-26 16:03:18 +0100 |
commit | 74b464cb456ecc435cb7abc3b05f7113287952a6 (patch) | |
tree | a60ec8322d9c4139319d0ee4f54982fb5083f2bc /module/gui/Overview.py | |
parent | better gui overview (diff) | |
download | pyload-74b464cb456ecc435cb7abc3b05f7113287952a6.tar.xz |
float fix
Diffstat (limited to 'module/gui/Overview.py')
-rw-r--r-- | module/gui/Overview.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/gui/Overview.py b/module/gui/Overview.py index bbd175b07..da5f3214f 100644 --- a/module/gui/Overview.py +++ b/module/gui/Overview.py @@ -70,7 +70,7 @@ class OverviewModel(QAbstractListModel): OverviewModel.Parts: len(p.children), OverviewModel.ETA: int(eta), OverviewModel.Speed: speed, - OverviewModel.CurrentSize: maxsize * (progress/100.0), + OverviewModel.CurrentSize: int(maxsize * (progress/100.0)), OverviewModel.MaxSize: maxsize, } @@ -146,10 +146,10 @@ class OverviewDelegate(QItemDelegate): size = "%s GiB" % round(kbytes/1024/1024, 2) return size - if progress == 100: - sizeline = QString(_("Size: %s") % formatSize(maxSize)) - else: - sizeline = QString(_("Size: %s/%s") % (formatSize(currentSize), formatSize(maxSize))) + #if progress == 100: + sizeline = QString(_("Size: %s") % formatSize(maxSize)) + #else: + # sizeline = QString(_("Size: %s/%s") % (formatSize(currentSize), formatSize(maxSize))) f = painter.font() f.setPointSize(12) |