aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--src/sos.spec2
-rwxr-xr-xsrc/sosreport8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/sos.spec b/src/sos.spec
index dd1755ca..17b2b6ae 100644
--- a/src/sos.spec
+++ b/src/sos.spec
@@ -2,7 +2,7 @@
%define name sos
%define version 1.7
-%define release 0
+%define release 1
Summary: A set of tools to gather troubleshooting information from a system
Name: %{name}
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