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

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

index 58a19148b5e1f24b0392452e9a9c8c75eddeb1f7..e2e961d412570108ed70139f38c9d29ec79b9910 100644 (file)
@@ -3,8 +3,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME := qos-scripts
+PKG_VERSION := 0.9.4
 PKG_RELEASE := 1
-PKG_VERSION := 0.9.3
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 
index a5f506d0d4dd8d953bf84dbc7e4dc605135b18a5..11d5bbb3ecbe0380ad6ea72f36d22caec6f92f8c 100755 (executable)
@@ -269,6 +269,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)