]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: don't double print rate
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 9 Jul 2018 16:53:45 +0000 (09:53 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 9 Jul 2018 16:53:45 +0000 (09:53 -0700)
Conversion to print stats in JSON forgot to remove existing
fprintf.

Fixes: 4fcec7f3665b ("tc: jsonify stats2")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/tc_util.c

index e0c96291ade02746c3966d75836edc9b1a4bd099..d7578528a31b1932bab12d793ac1798fef4ac13f 100644 (file)
@@ -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",