* [LARTC] HTB burst/cburst decremented by one
@ 2005-12-14 21:46 DervishD
2005-12-16 2:24 ` Patrick McHardy
2005-12-16 6:43 ` DervishD
0 siblings, 2 replies; 3+ messages in thread
From: DervishD @ 2005-12-14 21:46 UTC (permalink / raw)
To: lartc
Hi all :)
If I set the burst/cburst parameter to, let's say, 1500, the
command "tc -s -d class show dev eth0" says that the value is 1499b/8
instead of the (correct?) 1500b/8.
Is this right or am I doing anything wrong?
Many thanks in advance :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] HTB burst/cburst decremented by one
2005-12-14 21:46 [LARTC] HTB burst/cburst decremented by one DervishD
@ 2005-12-16 2:24 ` Patrick McHardy
2005-12-16 6:43 ` DervishD
1 sibling, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2005-12-16 2:24 UTC (permalink / raw)
To: lartc
DervishD wrote:
> Hi all :)
>
> If I set the burst/cburst parameter to, let's say, 1500, the
> command "tc -s -d class show dev eth0" says that the value is 1499b/8
> instead of the (correct?) 1500b/8.
>
> Is this right or am I doing anything wrong?
No, this is related to an integer division loosing precision in some
cases. I'm looking into a fix, but it might take a while.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] HTB burst/cburst decremented by one
2005-12-14 21:46 [LARTC] HTB burst/cburst decremented by one DervishD
2005-12-16 2:24 ` Patrick McHardy
@ 2005-12-16 6:43 ` DervishD
1 sibling, 0 replies; 3+ messages in thread
From: DervishD @ 2005-12-16 6:43 UTC (permalink / raw)
To: lartc
Hi Patrick :)
* Patrick McHardy <kaber@trash.net> dixit:
> DervishD wrote:
> > If I set the burst/cburst parameter to, let's say, 1500, the
> >command "tc -s -d class show dev eth0" says that the value is 1499b/8
> >instead of the (correct?) 1500b/8.
> >
> > Is this right or am I doing anything wrong?
>
> No, this is related to an integer division loosing precision in some
> cases. I'm looking into a fix, but it might take a while.
OK, thanks a lot :) In the meantime I'll just add "1" by hand to
get the numbers I really want ;)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-16 6:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-14 21:46 [LARTC] HTB burst/cburst decremented by one DervishD
2005-12-16 2:24 ` Patrick McHardy
2005-12-16 6:43 ` DervishD
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.