summaryrefslogtreecommitdiffstats
path: root/package/qos-scripts/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-04-07 00:20:48 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-04-07 00:20:48 +0000
commit24bc8c27dc547e9cdce54610075d80e0d068b820 (patch)
treebe3c38cc2df0a7137f9d5f714f3b0b51537d3b3e /package/qos-scripts/files
parent39093d7cdd662d17f5177c804c944f82d8639113 (diff)
qos-scripts: fix RED burst calculation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6878 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/qos-scripts/files')
-rw-r--r--package/qos-scripts/files/usr/lib/qos/tcrules.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/qos-scripts/files/usr/lib/qos/tcrules.awk b/package/qos-scripts/files/usr/lib/qos/tcrules.awk
index 8220d99ca..d236b2df9 100644
--- 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"
}
}