mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only add burst if a burst is defined
This commit is contained in:
parent
f63733e05b
commit
1142199675
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user