anaconda: try to fix the broken progress bar
This commit is contained in:
parent
6ad43624e6
commit
810972c3ba
@ -532,7 +532,7 @@ class ProgressWindow:
|
|||||||
# only update widget if we've changed by 5% or our timeout has
|
# only update widget if we've changed by 5% or our timeout has
|
||||||
# expired
|
# expired
|
||||||
curval = self.progress.get_fraction()
|
curval = self.progress.get_fraction()
|
||||||
newval = float (amount) / self.total
|
newval = float (amount) / float(self.total)
|
||||||
then = self.lastUpdate
|
then = self.lastUpdate
|
||||||
now = time.time()
|
now = time.time()
|
||||||
if newval < 0.998:
|
if newval < 0.998:
|
||||||
|
@ -216,7 +216,7 @@ class AnacondaCallback:
|
|||||||
self.numpkgs)
|
self.numpkgs)
|
||||||
% {'donepkgs': self.donepkgs,
|
% {'donepkgs': self.donepkgs,
|
||||||
'numpkgs': self.numpkgs})
|
'numpkgs': self.numpkgs})
|
||||||
self.progress.set_fraction(float(self.doneSize / self.totalSize))
|
self.progress.set_fraction(float(self.doneSize) / float(self.totalSize))
|
||||||
self.progress.processEvents()
|
self.progress.processEvents()
|
||||||
|
|
||||||
self.inProgressPo = None
|
self.inProgressPo = None
|
||||||
|
Loading…
Reference in New Issue
Block a user