set timeout should never print empty

This commit is contained in:
Monviech
2026-10-07 17:01:36 +02:00
parent 0b54f3e81d
commit 0ac05830d0
+5 -3
View File
@@ -325,11 +325,13 @@ function filter_configure_sync($verbose = false, $load_aliases = true)
$limitrules .= "set optimization normal\n";
}
if (isset($settings_filter['adaptive_start'], $settings_filter['adaptive_end'])) {
$adaptive_start = $settings_filter['adaptive_start'] ?? '';
$adaptive_end = $settings_filter['adaptive_end'] ?? '';
if ($adaptive_start !== '' && $adaptive_end !== '') {
$limitrules .= sprintf(
"set timeout { adaptive.start %s, adaptive.end %s }\n",
$settings_filter['adaptive_start'],
$settings_filter['adaptive_end']
$adaptive_start,
$adaptive_end
);
} else {
$limitrules .= "set timeout { adaptive.start 0, adaptive.end 0 }\n";