]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ss: Change resolve_services to numeric
authorDavid Ahern <dsahern@gmail.com>
Tue, 9 Jul 2019 21:54:34 +0000 (14:54 -0700)
committerDavid Ahern <dsahern@gmail.com>
Tue, 9 Jul 2019 21:54:34 +0000 (14:54 -0700)
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 <dsahern@gmail.com>
misc/ss.c

index e1c665a51daaef3c6d0e6ad7b641dcb1d64add1e..0927b1929fe1ee021a1f61d14725943946d944d2 100644 (file)
--- 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.);