reasumujac masz "inne" tc, ktore pokazuje nie w bps tylko w bit:
[root@router_nnd zciech]# tc -s -d class show dev ppp0
class htb 2:11 parent 2:1 leaf 8029: prio 4 quantum 1500 rate 13Kbit ceil 64Kbit burst 1615b/8 mpu 0b cburst 1680b/8 mpu 0b level 0
Sent 1231050 bytes 5580 pkts (dropped 0, overlimits 0)
rate
8bps
lended: 5144 borrowed: 436 giants: 0
tokens: 736492 ctokens: 156100
$classid=$matches[1];
if (preg_match("/(.*?)bit/", $rate, $vrate)) {
$rate = floor(($vrate[1]) * 1 / 1024)." Kbit";
}
root@serwer:$tc -s -d class show dev eth1|grep rate|grep -v class
rate 1512bps 2pps
rate 3709bps 5pps
rate 3551bps 4pps
jesli nie bedzie bps tylko bit albi Kbit to to jest przyczyna.
_________________
Nie jestem NEKROMANTĄ, nie wróżę z flaków!
Alkohol pity z umiarem nie szkodzi nawet w największych ilościach!
Przeczytaj nim zapytasz
