qos-scripts: fix RED burst calculation

SVN-Revision: 6878
This commit is contained in:
Felix Fietkau 2007-04-07 00:20:48 +00:00
parent 35967a174c
commit 3c4dd6fb02
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ END {
if (min < avpkt) min = avpkt
dqb = 8 * min;
max = int(2.1*min)
rburst = int((1.5*min + max) / (3 * avpkt))
rburst = int((2*min + max) / (3 * avpkt))
if (rburst < 2) rburst = 2
print "red min " min " max " max " burst " rburst " avpkt " avpkt " limit " dqb " probability 0.04 ecn"
}
}