ss: Change resolve_services to numeric
Commitca697cee4c("ip: add a new parameter -Numeric") changed !resolve_services to numeric in ss.c. A commit in master:d791e75d74("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 <dsahern@gmail.com>
This commit is contained in:
parent
830ac9abe6
commit
a257456f96
|
|
@ -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)
|
static char *sprint_bw(char *buf, double bw)
|
||||||
{
|
{
|
||||||
if (!resolve_services)
|
if (numeric)
|
||||||
sprintf(buf, "%.0f", bw);
|
sprintf(buf, "%.0f", bw);
|
||||||
else if (bw > 1000000.)
|
else if (bw > 1000000.)
|
||||||
sprintf(buf, "%.1fM", bw / 1000000.);
|
sprintf(buf, "%.1fM", bw / 1000000.);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue