From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH] ss: introduce switch to print exact value of data rates Date: Fri, 2 Feb 2018 16:32:47 -0700 Message-ID: <7b955a90-788d-07be-19ef-64fb481022ee@gmail.com> References: <20180201141915.27985-1-tomasz.torcz@nordea.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: tomek@pipebreaker.pl To: Tomasz Torcz , netdev@vger.kernel.org Return-path: Received: from mail-pg0-f67.google.com ([74.125.83.67]:33796 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557AbeBBXcs (ORCPT ); Fri, 2 Feb 2018 18:32:48 -0500 Received: by mail-pg0-f67.google.com with SMTP id s73so463576pgc.1 for ; Fri, 02 Feb 2018 15:32:48 -0800 (PST) In-Reply-To: <20180201141915.27985-1-tomasz.torcz@nordea.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: 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?