[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Limit progress bar amount to 1.0



---
 pyanaconda/gui.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/gui.py b/pyanaconda/gui.py
index ebd0085..f6ce592 100755
--- a/pyanaconda/gui.py
+++ b/pyanaconda/gui.py
@@ -478,6 +478,8 @@ class ProgressWindow:
             delta -= 0.05
 
     def set (self, amount):
+        amount = min(amount, self.total)
+
         # only update widget if we've changed by 5% or our timeout has
         # expired
         curval = self.progress.get_fraction()
-- 
1.7.2.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]