mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 14:53:16 +00:00
tc: don't double print rate
Conversion to print stats in JSON forgot to remove existing
fprintf.
Fixes: 4fcec7f366
("tc: jsonify stats2")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
4df5bb1be0
commit
b49759c0e7
@ -842,8 +842,6 @@ void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtat
|
||||
|
||||
memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST]),
|
||||
MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST]), sizeof(re)));
|
||||
fprintf(fp, "\n%srate %s %upps ",
|
||||
prefix, sprint_rate(re.bps, b1), re.pps);
|
||||
print_string(PRINT_FP, NULL, "\n%s", prefix);
|
||||
print_uint(PRINT_JSON, "rate", NULL, re.bps);
|
||||
print_string(PRINT_FP, NULL, "rate %s",
|
||||
|
Loading…
Reference in New Issue
Block a user