aboutsummaryrefslogtreecommitdiffstats
path: root/src/sosreport
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-07-13 15:14:34 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-07-13 15:14:34 +0000
commit1596f54d8ad39160f995798f457c759c67c79494 (patch)
treeb5e9a9d4da8f4a4020de938a96dc78b5dbf47269 /src/sosreport
parent02fe8bdb344b00ee8116f8fef9580155de45eafc (diff)
downloadsos-1596f54d8ad39160f995798f457c759c67c79494.tar.gz
* bumped release
* fixed a tiny bug in progressbar causing problems on slow systems git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@203 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/sosreport')
-rwxr-xr-xsrc/sosreport8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sosreport b/src/sosreport
index 1c9a37c0..c615393d 100755
--- a/src/sosreport
+++ b/src/sosreport
@@ -107,13 +107,13 @@ __cmdParser__.add_option("-l", "--list-plugins", action="store_true", \
help="list existing plugins")
__cmdParser__.add_option("-n", "--noplugin", action="extend", \
dest="noplugins", type="string", \
- help="list of plugins _not_ to load", default = [])
+ help="skip these plugins", default = [])
__cmdParser__.add_option("-o", "--onlyplugin", action="extend", \
dest="onlyplugins", type="string", \
- help="list of plugins to load", default = [])
+ help="enable these plugins only", default = [])
__cmdParser__.add_option("-e", "--enableplugin", action="extend", \
dest="enableplugins", type="string", \
- help="list of plugins to enable", default = [])
+ help="list of inactive plugins to be enabled", default = [])
__cmdParser__.add_option("-k", "--pluginopts", action="extend", \
dest="plugopts", type="string", \
help="plugin options in plugin_name.option=value format")
@@ -209,7 +209,7 @@ class progressBar:
# generate ETA
timeElapsed = round(time() - self.time_start)
last_update_relative = round(self.last_amount_update - self.time_start)
- if timeElapsed >= 10:
+ if timeElapsed >= 10 and self.amount > 0:
percentDone = round(timeElapsed * 100 / self.eta)
if percentDone > 100:
percentDone = 100