diff options
author | jim-p <jimp@pfsense.org> | 2013-06-18 11:52:52 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-06-18 11:53:39 -0400 |
commit | f1a17b1a085ca65fafbe28e7c36cf9fc0018f2b0 (patch) | |
tree | d7adc9b56fe1bd518b98cc777a211a4a71538bbc | |
parent | 45e12bad5ccc00c14e6610466b010dbf5cd89a2e (diff) | |
download | pfsense-f1a17b1a085ca65fafbe28e7c36cf9fc0018f2b0.zip pfsense-f1a17b1a085ca65fafbe28e7c36cf9fc0018f2b0.tar.gz |
Only add burst if a burst is defined
-rw-r--r-- | etc/inc/shaper.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 6532f1c..5f5fc8d 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3165,7 +3165,8 @@ 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']; - $pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale']; + if ($bw['burst'] > 0) + $pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale']; $found = true; break; } @@ -3179,7 +3180,8 @@ class dnpipe_class extends dummynet_class { } } else { $pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale']; - $pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale']; + if ($bw['burst'] > 0) + $pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale']; $found = true; break; } |