From a45e4f3626ea229b7544201ab04ea454fb8d1952 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 19 Dec 2006 02:53:02 +0000 Subject: [PATCH] fix qos-scripts RED qdisc calculation for slow lines SVN-Revision: 5853 --- openwrt/package/qos-scripts/Makefile | 2 +- openwrt/package/qos-scripts/files/usr/lib/qos.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openwrt/package/qos-scripts/Makefile b/openwrt/package/qos-scripts/Makefile index 58a19148b5..e2e961d412 100644 --- a/openwrt/package/qos-scripts/Makefile +++ b/openwrt/package/qos-scripts/Makefile @@ -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) diff --git a/openwrt/package/qos-scripts/files/usr/lib/qos.sh b/openwrt/package/qos-scripts/files/usr/lib/qos.sh index a5f506d0d4..11d5bbb3ec 100755 --- a/openwrt/package/qos-scripts/files/usr/lib/qos.sh +++ b/openwrt/package/qos-scripts/files/usr/lib/qos.sh @@ -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) -- 2.30.2