fix qos-scripts RED qdisc calculation for slow lines
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Dec 2006 02:53:02 +0000 (02:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Dec 2006 02:53:02 +0000 (02:53 +0000)
SVN-Revision: 5853

package/qos-scripts/Makefile
package/qos-scripts/files/usr/lib/qos.sh

index 86eb6b3a239511fb13e33c77b362dd28d1874e00..bb5a9639f11c3c4a8205dd2913c2f76374eb61b5 100644 (file)
@@ -9,7 +9,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=qos-scripts
-PKG_VERSION:=0.9.3
+PKG_VERSION:=0.9.4
 PKG_RELEASE:=1
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
index 8fcf9dc27f631cc3dc0122e4574a5d5de7cece4a..724784ebd01342c9ce922b195ae1d5993c11d60d 100755 (executable)
@@ -275,6 +275,7 @@ BEGIN {
                print "sfq perturb 10 limit " cqlen 
        } else {
                avpkt = 1200
+               if (min < avpkt) min = avpkt
                min = int(limit * 1024 / 8 * 0.1)
                dqb = cqlen * 1500
                max = int(min + (dqb - min) * 0.25)