summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-05-10 19:18:46 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-05-10 19:18:46 -0300
commit85bb5d7ed6957bc6b116be91e546d2369f7580b1 (patch)
tree4a29c189647832f2917710f5a2c7e8319b948081
parent6d0288b6c0afa5d92701f1f1f9b677fafd1968cd (diff)
downloadtuna-85bb5d7ed6957bc6b116be91e546d2369f7580b1.tar.gz
cmdline: Fix help line entry for --priority
tuna --help shows the --priority syntax as -p, --priority=[POLICY]:RTPRIO but the colon should only be present when the optional policy is supplied. It should look like: -p, --priority=[POLICY:]RTPRIO RHBZ-Reference: https://bugzilla.redhat.com/show_bug.cgi?id=563355 Reported-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-xtuna-cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuna-cmd.py b/tuna-cmd.py
index e362bdc..ce8c98a 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -58,7 +58,7 @@ def usage():
if have_inet_diag:
print fmt % ('-n, --show_sockets', _('Show network sockets in use by threads'))
print fmt % ('-p, --priority=[' +
- _('POLICY') + ']:' +
+ _('POLICY') + ':]' +
_('RTPRIO'), _('Set thread scheduler tunables: %(policy)s and %(rtprio)s') % \
{"policy": _('POLICY'), "rtprio": _('RTPRIO')})
print fmt % ('-P, --show_threads', _('Show thread list'))