aboutsummaryrefslogtreecommitdiffstats
path: root/package/qos-scripts/files/usr/lib/qos.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/qos-scripts/files/usr/lib/qos.sh')
-rwxr-xr-xpackage/qos-scripts/files/usr/lib/qos.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/qos-scripts/files/usr/lib/qos.sh b/package/qos-scripts/files/usr/lib/qos.sh
index 8fcf9dc27f..724784ebd0 100755
--- a/package/qos-scripts/files/usr/lib/qos.sh
+++ b/package/qos-scripts/files/usr/lib/qos.sh
@@ -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)