From 4f42b2d8b8a864e448bf6c4e2672d906a1ead8cd Mon Sep 17 00:00:00 2001 From: shnavid Date: Thu, 15 Mar 2007 12:01:04 +0000 Subject: Small fix for progressbar to work properly when running multithreaded. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@96 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/sosreport | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sosreport b/src/sosreport index f9744040..34ecc5ec 100755 --- a/src/sosreport +++ b/src/sosreport @@ -360,7 +360,10 @@ def sosreport(): else: plug.copyStuff() if __cmdLineOpts__.progressbar: - pbar.incAmount(30) + if __cmdLineOpts__.multithread: + pbar.incAmount() + else: + pbar.incAmount(30) pbar.update() # Wait for all the collection threads to exit @@ -370,7 +373,7 @@ def sosreport(): print "Waiting for plugin %s to return" % plugname, plug.wait() if __cmdLineOpts__.progressbar: - pbar.incAmount() + pbar.incAmount(30) pbar.update() # Call the analyze method for each plugin -- cgit