summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2005-11-21 21:22:28 +0000
committerDavid Cantrell <dcantrell@redhat.com>2005-11-21 21:22:28 +0000
commit85feb7fdee839400b3bc9d3c2904e5e9de3c1fb2 (patch)
tree79836ab3440e0eae2a4db7c0e2cdb82f90c162c8 /gui.py
parente9ea157654ab054de003328648cc7b32f200e3ed (diff)
downloadanaconda-85feb7fdee839400b3bc9d3c2904e5e9de3c1fb2.tar.gz
anaconda-85feb7fdee839400b3bc9d3c2904e5e9de3c1fb2.tar.xz
anaconda-85feb7fdee839400b3bc9d3c2904e5e9de3c1fb2.zip
Fixed one of the progress bars in the GUI frontend (retrieving package
information). GTK+ needs the percentage between 0 and 1, we were sending very large values. Text mode progress bar unchanged for now.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index 1055fccb9..b131e6130 100755
--- a/gui.py
+++ b/gui.py
@@ -529,7 +529,7 @@ class ProgressWindow:
def set (self, amount):
# only update widget if we've changed by 5%
curval = self.progress.get_fraction()
- newval = float (amount) / self.total
+ newval = (float (amount) / self.total) / 100
if newval < 0.998:
if (newval - curval) < 0.05 and newval > curval:
return