diff options
author | Mike Fulbright <msf@redhat.com> | 2001-12-18 16:20:40 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-12-18 16:20:40 +0000 |
commit | 163ad10bfca52ca049631f7ef9e41b24a81c6114 (patch) | |
tree | b8110521614d40b585cc5c068fb39ca0420bc175 /iw/progress_gui.py | |
parent | fd4f6fb0ce47c694297057f24015de26e75b8cc5 (diff) | |
download | anaconda-163ad10bfca52ca049631f7ef9e41b24a81c6114.tar.gz anaconda-163ad10bfca52ca049631f7ef9e41b24a81c6114.tar.xz anaconda-163ad10bfca52ca049631f7ef9e41b24a81c6114.zip |
a change which cut network s/390 install time from 8 hours to 4 hours
Diffstat (limited to 'iw/progress_gui.py')
-rw-r--r-- | iw/progress_gui.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py index 3bf498bab..9871bd124 100644 --- a/iw/progress_gui.py +++ b/iw/progress_gui.py @@ -43,8 +43,15 @@ class InstallProgressWindow (InstallWindow): gui.processEvents() def setPackageScale (self, amount, total): - self.progress.update (float (amount) / total) -# self.totalProgress.update (float (self.sizeComplete + amount) / self.totalSize) + # only update widget if we've changed by 1%, otherwise + # we update widget hundreds of times a seconds because RPM + # calls us back ALOT + curval = self.progress.get_current_percentage() + newval = float (amount) / total + if (newval - curval) < 0.01 and newval > curval: + return + + self.progress.set_percentage (newval) def completePackage(self, header, timer): def formatTime(amt): |