summaryrefslogtreecommitdiffstats
path: root/etc/inc/shaper.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-07 15:19:30 +0000
committerErmal <eri@pfsense.org>2012-11-07 15:19:30 +0000
commitec091c89f88798af1593ebd60d587ad2fc4ef4b8 (patch)
tree5f93cdae0845ec50c8aadc7e3d38e7d8800875a8 /etc/inc/shaper.inc
parent34811aa7c0c0d411eb3b733c850964a72eb1c50c (diff)
downloadpfsense-ec091c89f88798af1593ebd60d587ad2fc4ef4b8.zip
pfsense-ec091c89f88798af1593ebd60d587ad2fc4ef4b8.tar.gz
break the loop for none schedule limiters
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r--etc/inc/shaper.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 8bf7e94..b93ec9f 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -3017,12 +3017,15 @@ class dnpipe_class extends dummynet_class {
}
} else
$pfq_rule .= " bw 0";
- } else
+ } else {
$pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale'];
+ break;
+ }
}
if ($found == false)
$pfq_rule .= " bw 0";
- }
+ } else
+ $pfq_rule .= " bw 0";
if ($this->GetQlimit())
$pfq_rule .= " queue " . $this->GetQlimit();
OpenPOWER on IntegriCloud