From patchwork Thu Aug 16 10:28:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Sutter X-Patchwork-Id: 958225 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=nwl.cc Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41rjGd5sqyz9s47 for ; Thu, 16 Aug 2018 20:28:25 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390930AbeHPNZ7 (ORCPT ); Thu, 16 Aug 2018 09:25:59 -0400 Received: from orbyte.nwl.cc ([151.80.46.58]:43608 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390487AbeHPNZ7 (ORCPT ); Thu, 16 Aug 2018 09:25:59 -0400 Received: from localhost ([::1]:58884 helo=tatos) by orbyte.nwl.cc with esmtp (Exim 4.90_1) (envelope-from ) id 1fqFVu-00083G-Ra; Thu, 16 Aug 2018 12:28:22 +0200 From: Phil Sutter To: Stephen Hemminger Cc: netdev@vger.kernel.org Subject: [iproute PATCH 08/10] man: rtacct.8: Fix nstat options Date: Thu, 16 Aug 2018 12:28:00 +0200 Message-Id: <20180816102802.31782-9-phil@nwl.cc> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180816102802.31782-1-phil@nwl.cc> References: <20180816102802.31782-1-phil@nwl.cc> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add missing --pretty and --json options, correct --zero to --zeros and correct the mess around --scan/--interval including broken man page formatting. Signed-off-by: Phil Sutter --- man/man8/rtacct.8 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/man/man8/rtacct.8 b/man/man8/rtacct.8 index 01321e6dbdd60..ccdbf6ca75e57 100644 --- a/man/man8/rtacct.8 +++ b/man/man8/rtacct.8 @@ -4,7 +4,7 @@ nstat, rtacct - network statistics tools. .SH SYNOPSIS -Usage: nstat [ -h?vVzrnasd:t: ] [ PATTERN [ PATTERN ] ] +Usage: nstat [ -h?vVzrnasd:t:jp ] [ PATTERN [ PATTERN ] ] .br Usage: rtacct [ -h?vVzrnasd:t: ] [ ListOfRealms ] @@ -21,7 +21,7 @@ Print help .B \-V, \-\-version Print version .TP -.B \-z, \-\-zero +.B \-z, \-\-zeros Dump zero counters too. By default they are not shown. .TP .B \-r, \-\-reset @@ -39,12 +39,16 @@ Do not update history, so that the next time you will see counters including val .B \-j, \-\-json Display results in JSON format. .TP -.B \-d, \-\-interval +.B \-p, \-\-pretty +When combined with +.BR \-\-json , +pretty print the output. +.TP +.B \-d, \-\-scan Run in daemon mode collecting statistics. is interval between measurements in seconds. .TP - +.B \-t, \-\-interval Time interval to average rates. Default value is 60 seconds. -.TP .SH SEE ALSO lnstat(8)