From: Felix Fietkau Date: Sat, 7 Apr 2007 00:20:48 +0000 (+0000) Subject: qos-scripts: fix RED burst calculation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3c4dd6fb024967d1b3bb605ba2ef9c619c95daf4;p=openwrt%2Fstaging%2Fansuel.git qos-scripts: fix RED burst calculation SVN-Revision: 6878 --- diff --git a/package/qos-scripts/files/usr/lib/qos/tcrules.awk b/package/qos-scripts/files/usr/lib/qos/tcrules.awk index 8220d99ca2..d236b2df93 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" } }