diff options
author | David Ahern <dsahern@gmail.com> | 2019-07-09 14:54:34 -0700 |
---|---|---|
committer | David Ahern <dsahern@gmail.com> | 2019-07-09 14:54:34 -0700 |
commit | a257456f9684a955fa7f976f8e7e31548d61fd69 (patch) | |
tree | 3991893a40d2277a365e6a62b053ef0ed4819146 /misc/ss.c | |
parent | 830ac9abe62d00304ce4dbd2194ec6ad2d217de1 (diff) | |
download | iproute2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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.); |