naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0007-man-rtacct.8-Fix-nstat-options.patch

7e752c
From f586cb6ed5543621ec55ac07a6d2b72504c9c65b Mon Sep 17 00:00:00 2001
7e752c
From: Phil Sutter <psutter@redhat.com>
7e752c
Date: Thu, 13 Sep 2018 20:38:04 +0200
7e752c
Subject: [PATCH] man: rtacct.8: Fix nstat options
7e752c
7e752c
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1612704
7e752c
Upstream Status: iproute2.git commit 71170d854e96d
7e752c
7e752c
commit 71170d854e96d2e7dff338f482cb23dfadbbd702
7e752c
Author: Phil Sutter <phil@nwl.cc>
7e752c
Date:   Thu Aug 16 12:28:00 2018 +0200
7e752c
7e752c
    man: rtacct.8: Fix nstat options
7e752c
7e752c
    Add missing --pretty and --json options, correct --zero to --zeros and
7e752c
    correct the mess around --scan/--interval including broken man page
7e752c
    formatting.
7e752c
7e752c
    Signed-off-by: Phil Sutter <phil@nwl.cc>
7e752c
    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
7e752c
---
7e752c
 man/man8/rtacct.8 | 14 +++++++++-----
7e752c
 1 file changed, 9 insertions(+), 5 deletions(-)
7e752c
7e752c
diff --git a/man/man8/rtacct.8 b/man/man8/rtacct.8
7e752c
index 01321e6..ccdbf6c 100644
7e752c
--- a/man/man8/rtacct.8
7e752c
+++ b/man/man8/rtacct.8
7e752c
@@ -4,7 +4,7 @@
7e752c
 nstat, rtacct - network statistics tools.
7e752c
 
7e752c
 .SH SYNOPSIS
7e752c
-Usage: nstat [ -h?vVzrnasd:t: ] [ PATTERN [ PATTERN ] ]
7e752c
+Usage: nstat [ -h?vVzrnasd:t:jp ] [ PATTERN [ PATTERN ] ]
7e752c
 .br
7e752c
 Usage: rtacct [ -h?vVzrnasd:t: ] [ ListOfRealms ]
7e752c
 
7e752c
@@ -21,7 +21,7 @@ Print help
7e752c
 .B \-V, \-\-version
7e752c
 Print version
7e752c
 .TP
7e752c
-.B \-z, \-\-zero
7e752c
+.B \-z, \-\-zeros
7e752c
 Dump zero counters too. By default they are not shown.
7e752c
 .TP
7e752c
 .B \-r, \-\-reset
7e752c
@@ -39,12 +39,16 @@ Do not update history, so that the next time you will see counters including val
7e752c
 .B \-j, \-\-json
7e752c
 Display results in JSON format.
7e752c
 .TP
7e752c
-.B \-d, \-\-interval <INTERVAL>
7e752c
+.B \-p, \-\-pretty
7e752c
+When combined with
7e752c
+.BR \-\-json ,
7e752c
+pretty print the output.
7e752c
+.TP
7e752c
+.B \-d, \-\-scan <INTERVAL>
7e752c
 Run in daemon mode collecting statistics. <INTERVAL> is interval between measurements in seconds.
7e752c
 .TP
7e752c
-
7e752c
+.B \-t, \-\-interval <INTERVAL>
7e752c
 Time interval to average rates. Default value is 60 seconds.
7e752c
-.TP
7e752c
 
7e752c
 .SH SEE ALSO
7e752c
 lnstat(8)
7e752c
-- 
7e752c
1.8.3.1
7e752c