projects
/
openwrt
/
staging
/
mans0n.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35967a1
)
qos-scripts: fix RED burst calculation
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 7 Apr 2007 00:20:48 +0000
(
00:20
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 7 Apr 2007 00:20:48 +0000
(
00:20
+0000)
SVN-Revision: 6878
package/qos-scripts/files/usr/lib/qos/tcrules.awk
patch
|
blob
|
history
diff --git
a/package/qos-scripts/files/usr/lib/qos/tcrules.awk
b/package/qos-scripts/files/usr/lib/qos/tcrules.awk
index 8220d99ca206518af41adef1405e29d63438d2c5..d236b2df93e1528e0f44f409dcf1ae083d6b49e9 100644
(file)
--- a/
package/qos-scripts/files/usr/lib/qos/tcrules.awk
+++ b/
package/qos-scripts/files/usr/lib/qos/tcrules.awk
@@
-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"
}
}