diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-03-11 01:30:14 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-03-11 01:30:14 -0500 |
commit | 80dfff9a2bbadc31a7b60eddcf169fc2c2f01cb7 (patch) | |
tree | 4001d2fb31110488e90f52bcccacc7d06c1df976 | |
parent | 0f57551162abde8ac58c0b48c9d0595e08694682 (diff) | |
download | pfsense-80dfff9a2bbadc31a7b60eddcf169fc2c2f01cb7.zip pfsense-80dfff9a2bbadc31a7b60eddcf169fc2c2f01cb7.tar.gz |
Leave adaptive.start and end at their defaults (60% and 120% of the state limit, respectively) if not user-overridden.
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index af1494b..c0cd4a1 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -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. */ |