aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-03-15 12:01:04 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-03-15 12:01:04 +0000
commit4f42b2d8b8a864e448bf6c4e2672d906a1ead8cd (patch)
tree850a263b3de999200ea06cc434fdcdc2a2ff3499
parent5134255751166363c260ed2668f855fe45f0a427 (diff)
downloadsos-4f42b2d8b8a864e448bf6c4e2672d906a1ead8cd.tar.gz
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
-rwxr-xr-xsrc/sosreport7
1 files 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