Fix packet cbs/ebs conversion.
Each packet is counted as 128 bytes by the code, not 125. Not sure what I was thinking about here 14 years ago. May be just a typo. Reported by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks
This commit is contained in:
parent
f4b38c360e
commit
4a6830761c
@ -491,14 +491,14 @@ ng_car_rcvmsg(node_p node, item_p item, hook_p lasthook)
|
||||
if (bconf->downstream.opt & NG_CAR_COUNT_PACKETS) {
|
||||
bconf->downstream.cir *= 1024;
|
||||
bconf->downstream.pir *= 1024;
|
||||
bconf->downstream.cbs *= 125;
|
||||
bconf->downstream.ebs *= 125;
|
||||
bconf->downstream.cbs *= 128;
|
||||
bconf->downstream.ebs *= 128;
|
||||
}
|
||||
if (bconf->upstream.opt & NG_CAR_COUNT_PACKETS) {
|
||||
bconf->upstream.cir *= 1024;
|
||||
bconf->upstream.pir *= 1024;
|
||||
bconf->upstream.cbs *= 125;
|
||||
bconf->upstream.ebs *= 125;
|
||||
bconf->upstream.cbs *= 128;
|
||||
bconf->upstream.ebs *= 128;
|
||||
}
|
||||
if ((bconf->downstream.cir > 1000000000) ||
|
||||
(bconf->downstream.pir > 1000000000) ||
|
||||
|
Loading…
Reference in New Issue
Block a user