summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-07-25 04:57:29 +0000
committerMike Fulbright <msf@redhat.com>2002-07-25 04:57:29 +0000
commit3b1dad109881db14ecfb8a6d06d386624c16df60 (patch)
treed8c3fd3eeefcd806d5ad5b511dcec4fb456a5f36 /iw
parent6bbb9eac8f1998a40f646256ff9e13c0b74a7db9 (diff)
downloadanaconda-3b1dad109881db14ecfb8a6d06d386624c16df60.tar.gz
anaconda-3b1dad109881db14ecfb8a6d06d386624c16df60.tar.xz
anaconda-3b1dad109881db14ecfb8a6d06d386624c16df60.zip
change progress increment to 5%
Diffstat (limited to 'iw')
-rw-r--r--iw/progress_gui.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py
index 2765d344a..3bdc99e44 100644
--- a/iw/progress_gui.py
+++ b/iw/progress_gui.py
@@ -44,13 +44,14 @@ class InstallProgressWindow (InstallWindow):
gui.processEvents()
def setPackageScale (self, amount, total):
- # only update widget if we've changed by 1%, otherwise
+ # only update widget if we've changed by 5%, otherwise
# we update widget hundreds of times a seconds because RPM
# calls us back ALOT
curval = self.progress.get_fraction()
newval = float (amount) / total
- if (newval - curval) < 0.01 and newval > curval:
- return
+ if newval < 0.998:
+ if (newval - curval) < 0.05 and newval > curval:
+ return
self.progress.set_fraction (newval)
self.processEvents()