mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Leave adaptive.start and end at their defaults (60% and 120% of the state limit, respectively) if not user-overridden.
This commit is contained in:
parent
0f57551162
commit
80dfff9a2b
@ -309,9 +309,7 @@ function filter_configure_sync($delete_states_if_needed = true) {
|
||||
|
||||
if (!empty($config['system']['adaptivestart']) && !empty($config['system']['adaptiveend'])) {
|
||||
$limitrules .= "set timeout { adaptive.start {$config['system']['adaptivestart']}, adaptive.end {$config['system']['adaptiveend']} }\n";
|
||||
} else {
|
||||
$limitrules .= "set timeout { adaptive.start 0, adaptive.end 0 }\n";
|
||||
}
|
||||
}
|
||||
|
||||
if ($config['system']['maximumstates'] <> "" && is_numeric($config['system']['maximumstates'])) {
|
||||
/* User defined maximum states in Advanced menu. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user