]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
iproute: fix tc -iec display of Mibit rates
authorAndreas Henriksson <andreas@fatal.se>
Fri, 9 Mar 2012 16:09:19 +0000 (17:09 +0100)
committerStephen Hemminger <shemminger@vyatta.com>
Sat, 10 Mar 2012 17:13:58 +0000 (09:13 -0800)
commitf526af995e4b610334ddea250686643b2d6e9729
tree0f2c9ab582f5760e31bd70929a7414a0eec7fad3
parent8ced4fcd50dbbf7a0219ff5705390e6f89ba434c
iproute: fix tc -iec display of Mibit rates

As reported by Thomas Mühlgrabner <muehltom@cable.vol.at>
in http://bugs.debian.org/662979 :

 When showing htb class configuration with "tc -iec class show",
 the output for Mibit is actually the value for bit.
 Example: configure a class with a ceil of 1000Mibit.
 Output states 1048576000 Mibit.

The cause is missing parenteses in the display code of tc....

(Please also note that a lower value of 100Mibit will be displayed
as 102400 Kibit, which I think is kind of ugly.)

Reported-by: Thomas Mühlgrabner <muehltom@cable.vol.at>
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
tc/tc_util.c