]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: pie: add support for JSON output
authorLeslie Monis <lesliemonis@gmail.com>
Wed, 25 Dec 2019 19:04:14 +0000 (00:34 +0530)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 29 Dec 2019 17:57:27 +0000 (09:57 -0800)
commit0154d096c5f8de695dcbed0ae9e484a2d928b2b3
tree757528517cfd0752781df4bfa793dffdc9a09b97
parentf6564ed60d8cc4697934bc351ef3aa631fda8b97
tc: pie: add support for JSON output

Enable proper JSON output for the PIE Qdisc.
Use sprint_time() to print the value of tc_pie_xstats->delay.
Use the long double format specifier to print tc_pie_xstats->prob.
Also, fix the indentation in the oneline output of statistics and update
the man page to reflect this change.

Signed-off-by: Leslie Monis <lesliemonis@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
man/man8/tc-pie.8
tc/q_pie.c