From 84eb43117da7d22e23d6b007622b68d946972bf4 Mon Sep 17 00:00:00 2001 From: Eric Kerin Date: Tue, 14 Jul 2009 09:09:32 -0400 Subject: Don't show formatting progress bar after mkfs has exited. mke2fs will finish it's work quickly, and anaconda will spend quite sometime reading in the output, and updating the progress dialog in certain cases - the attached patch adds a check to the read/progress loop to check to see if the process has finished, and jumps out early if that's the case. --- gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gui.py') diff --git a/gui.py b/gui.py index 671bb580a..4def03f59 100755 --- a/gui.py +++ b/gui.py @@ -521,7 +521,10 @@ class ProgressWindow: return self.progress.set_pulse_step(self.updpct) self.lastUpdate = now - # if we've had a largish gap, some smoothing does actually help. + # if we've had a largish gap, some smoothing does actually help, + # but don't go crazy + if delta > 2: + delta=2 while delta > 0: self.progress.pulse() processEvents() -- cgit