From 1596f54d8ad39160f995798f457c759c67c79494 Mon Sep 17 00:00:00 2001 From: shnavid Date: Fri, 13 Jul 2007 15:14:34 +0000 Subject: * 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 --- src/sos.spec | 2 +- src/sosreport | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 -- cgit