From dd5396ae4b4fb1d6cc35baf9b745a994e7e0e8c4 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 1 Nov 2018 16:18:28 +0100 Subject: [PATCH] Don't raise false hopes and begin download from 0 % --- usr/lib/python3.6/vmmgr/appmgr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/python3.6/vmmgr/appmgr.py b/usr/lib/python3.6/vmmgr/appmgr.py index 01af399..21dabff 100644 --- a/usr/lib/python3.6/vmmgr/appmgr.py +++ b/usr/lib/python3.6/vmmgr/appmgr.py @@ -38,8 +38,8 @@ class InstallItem: self.downloaded = 0 def __str__(self): - # Limit the disaplyed percentage between 1 - 99 for aestethical and psychological reasons - return str(max(1, min(99, round(self.downloaded / self.total * 100)))) + # Limit the displayed percentage to 0 - 99 + return str(min(99, round(self.downloaded / self.total * 100))) class AppMgr: def __init__(self, vmmgr):