summaryrefslogtreecommitdiff
path: root/misc/ss.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-07-09 14:54:34 -0700
committerDavid Ahern <dsahern@gmail.com>2019-07-09 14:54:34 -0700
commita257456f9684a955fa7f976f8e7e31548d61fd69 (patch)
tree3991893a40d2277a365e6a62b053ef0ed4819146 /misc/ss.c
parent830ac9abe62d00304ce4dbd2194ec6ad2d217de1 (diff)
downloadiproute2-a257456f9684a955fa7f976f8e7e31548d61fd69.tar.gz
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 <dsahern@gmail.com>
Diffstat (limited to 'misc/ss.c')
-rw-r--r--misc/ss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ss.c b/misc/ss.c
index e1c665a5..0927b192 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.);