Re: [PATCH iproute2] tc: fix second printing of requeues

2018-01-27 Thread Stephen Hemminger
On Sat, 27 Jan 2018 01:19:04 -0800 Jakub Kicinski wrote: > Non-JSON tc qdisc output used to print the "requeues" statistic > twice. Commit 4fcec7f3665b ("tc: jsonify stats2") tried to preserve > this behaviour for both standard output and JSON, but used the wrong > statistic (q.qlen). Also dupl

[PATCH iproute2] tc: fix second printing of requeues

2018-01-27 Thread Jakub Kicinski
Non-JSON tc qdisc output used to print the "requeues" statistic twice. Commit 4fcec7f3665b ("tc: jsonify stats2") tried to preserve this behaviour for both standard output and JSON, but used the wrong statistic (q.qlen). Also duplicating keys in JSON is not allowed, so the second occurrence shoul