]> git.proxmox.com Git - mirror_iproute2.git/commit
tc/m_estimator: Print proper value for estimator interval in raw.
authorJamie Gloudon <jamie.gloudon@gmx.fr>
Fri, 17 Jul 2020 15:05:30 +0000 (11:05 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 20 Jul 2020 20:25:56 +0000 (13:25 -0700)
commit66702fb9baf277b2eb6d44a7983d5333ca2a0a2c
treee134bff23019e90555338d7aac736586468e465d
parentf33a871b8094ae0f6e6293804e1cc6edbba0e108
tc/m_estimator: Print proper value for estimator interval in raw.

While looking at the estimator code, I noticed an incorrect interval
number printed in raw for the handles. This patch fixes the formatting.

Before patch:

root@bytecenter.fr:~# tc -r filter add dev eth0 ingress estimator
250ms 999ms matchall action police avrate 12mbit conform-exceed drop
[estimator i=4294967294 e=2]

After patch:

root@bytecenter.fr:~# tc -r filter add dev eth0 ingress estimator
250ms 999ms matchall action police avrate 12mbit conform-exceed drop
[estimator i=-2 e=2]

Signed-off-by: Jamie Gloudon <jamie.gloudon@gmx.fr>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/m_estimator.c