diff options
-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) |