Don't raise false hopes and begin download from 0 %
This commit is contained in:
parent
bac3737069
commit
dd5396ae4b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user