summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-06-18 11:57:20 -0400
committerjim-p <jimp@pfsense.org>2013-06-18 11:57:20 -0400
commit012cd3ba990b8303c6937df039d31ef039610853 (patch)
tree95875c33beb841217e3082a089eff31d909ab7a4 /etc/inc
parentf1a17b1a085ca65fafbe28e7c36cf9fc0018f2b0 (diff)
downloadpfsense-012cd3ba990b8303c6937df039d31ef039610853.zip
pfsense-012cd3ba990b8303c6937df039d31ef039610853.tar.gz
Burst of 0 is also valid
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/shaper.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 5f5fc8d..f69b9c7 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -3165,7 +3165,7 @@ class dnpipe_class extends dummynet_class {
if ($bw['bwsched'] == $schedule['name']) {
if (filter_get_time_based_rule_status($schedule)) {
$pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale'];
- if ($bw['burst'] > 0)
+ if ($bw['burst'] >= 0)
$pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale'];
$found = true;
break;
@@ -3180,7 +3180,7 @@ class dnpipe_class extends dummynet_class {
}
} else {
$pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale'];
- if ($bw['burst'] > 0)
+ if ($bw['burst'] >= 0)
$pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale'];
$found = true;
break;
OpenPOWER on IntegriCloud