From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] ss: introduce switch to print exact value of data rates Date: Mon, 5 Feb 2018 17:02:27 -0800 Message-ID: <20180205170227.1406931f@xeon-e3> References: <20180201141915.27985-1-tomasz.torcz@nordea.com> <7b955a90-788d-07be-19ef-64fb481022ee@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Tomasz Torcz , netdev@vger.kernel.org, tomek@pipebreaker.pl To: David Ahern Return-path: Received: from mail-pg0-f67.google.com ([74.125.83.67]:45805 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752413AbeBFBCc (ORCPT ); Mon, 5 Feb 2018 20:02:32 -0500 Received: by mail-pg0-f67.google.com with SMTP id m136so234344pga.12 for ; Mon, 05 Feb 2018 17:02:31 -0800 (PST) In-Reply-To: <7b955a90-788d-07be-19ef-64fb481022ee@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 2 Feb 2018 16:32:47 -0700 David Ahern wrote: > On 2/1/18 7:19 AM, Tomasz Torcz wrote: > > Introduce -X/--exact switch to disable human-friendly printing > > of datarates. With the switch, data is not presented as MBps/Kbps. > > > > Signed-off-by: Tomasz Torcz > > --- > > misc/ss.c | 12 ++++++++++-- > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > diff --git a/misc/ss.c b/misc/ss.c > > index 29a25070..5ca5112a 100644 > > --- a/misc/ss.c > > +++ b/misc/ss.c > > @@ -95,6 +95,7 @@ int resolve_services = 1; > > int preferred_family = AF_UNSPEC; > > int show_options; > > int show_details; > > +int show_exact; > > show_exact suggests the other versions are not exact. show_raw? or > > int human_readable = 1; > > and -X disables it? agree with david, think of another flag name (raw? or no-prefix?)