diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-02-25 21:18:06 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-02-25 21:18:06 +0000 |
commit | 0af8a7669bc0361c1f75212543aac2002627c611 (patch) | |
tree | d75686db6116c476cda5d857e43094f07c31acbc | |
parent | c0a5fbe5c61387138df994dc0209bf6bc29abac0 (diff) | |
download | sos-0af8a7669bc0361c1f75212543aac2002627c611.tar.gz |
- progress indicator
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@782 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rwxr-xr-x | sos/sosreport.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py index 67144d8c..7304bafe 100755 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -698,9 +698,10 @@ No changes will be made to your system. print plugruncount = 0 for i in izip(GlobalVars.loadedplugins): + plugruncount += 1 sys.stdout.write("\r") - sys.stdout.write("Completed [%d/%d] ... " % (plugruncount, - len(Globalvars.loadedplugins))) + sys.stdout.write(" Completed [%d/%d] ... " % (plugruncount, + len(GlobalVars.loadedplugins))) plugname, plug = i[0] try: plug.copyStuff() @@ -709,6 +710,7 @@ No changes will be made to your system. except: if GlobalVars.__raisePlugins__: raise + print if GlobalVars.__cmdLineOpts__.report: for plugname, plug in GlobalVars.loadedplugins: |