From: David Ahern Date: Tue, 9 Jul 2019 21:54:34 +0000 (-0700) Subject: ss: Change resolve_services to numeric X-Git-Tag: v5.3.0~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a257456f9684a955fa7f976f8e7e31548d61fd69;p=thirdparty%2Fiproute2.git ss: Change resolve_services to numeric Commit ca697cee4cfc ("ip: add a new parameter -Numeric") changed !resolve_services to numeric in ss.c. A commit in master: d791e75d74ff ("ss: in --numeric mode, print raw numbers for data rates") added another reference to !resolve_services. Convert it to numeric. Signed-off-by: David Ahern --- diff --git a/misc/ss.c b/misc/ss.c index e1c665a51..0927b1929 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -2361,7 +2361,7 @@ static int proc_inet_split_line(char *line, char **loc, char **rem, char **data) static char *sprint_bw(char *buf, double bw) { - if (!resolve_services) + if (numeric) sprintf(buf, "%.0f", bw); else if (bw > 1000000.) sprintf(buf, "%.1fM", bw / 1000000.);