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
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user