From 80dfff9a2bbadc31a7b60eddcf169fc2c2f01cb7 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Wed, 11 Mar 2015 01:30:14 -0500 Subject: [PATCH] Leave adaptive.start and end at their defaults (60% and 120% of the state limit, respectively) if not user-overridden. --- etc/inc/filter.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index af1494bb10..c0cd4a14da 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. */