Don't raise false hopes and begin download from 0 %

This commit is contained in:
Disassembler 2018-11-01 16:18:28 +01:00
parent bac3737069
commit dd5396ae4b
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -38,8 +38,8 @@ class InstallItem:
self.downloaded = 0 self.downloaded = 0
def __str__(self): def __str__(self):
# Limit the disaplyed percentage between 1 - 99 for aestethical and psychological reasons # Limit the displayed percentage to 0 - 99
return str(max(1, min(99, round(self.downloaded / self.total * 100)))) return str(min(99, round(self.downloaded / self.total * 100)))
class AppMgr: class AppMgr:
def __init__(self, vmmgr): def __init__(self, vmmgr):