Skip to contentSkip to conversation

How bytecount works?

LARTC Stef Coene 1 participant 1 message Mar 1, 2002

lore
Share & tools
lore

Stef Coene

author
#0 lore raw
Quoted 4 lines · you

I'd look into sources of tc because I can't remember whether k in kbps and kbit means 1000 or 1024. But I rather Cced it to LARTC. Anybody knows ?
devik

See howto :

mbps = 1024 kbps = 1024 * 1024 bps => byte/s mbit = 1024 kbit => kilo bit/s.
mb = 1024 kb = 1024 * 1024 b => byte mbit = 1024 kbit => kilo bit.
Internally, the number is stored in bps and b.

But when tc prints the rate, it uses following :
1Mbit = 1024 Kbit = 1024 * 1024 bps => bit/s

Stef

Signature · 6 lines
[email protected]
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/