anaconda: try to fix the broken progress bar

release2
Joanna Rutkowska 13 years ago
parent 6ad43624e6
commit 810972c3ba

@ -532,7 +532,7 @@ class ProgressWindow:
# only update widget if we've changed by 5% or our timeout has
# expired
curval = self.progress.get_fraction()
newval = float (amount) / self.total
newval = float (amount) / float(self.total)
then = self.lastUpdate
now = time.time()
if newval < 0.998:

@ -216,7 +216,7 @@ class AnacondaCallback:
self.numpkgs)
% {'donepkgs': self.donepkgs,
'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.inProgressPo = None

Loading…
Cancel
Save