anaconda: try to fix the broken progress bar

This commit is contained in:
Joanna Rutkowska 2011-09-11 16:19:36 +02:00
parent 6ad43624e6
commit 810972c3ba
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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