From 56820622c6090d6eace6c7a7931e7df19dc2ba40 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Fri, 30 Jan 2026 13:27:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E7=AE=97=E6=B3=95?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - confirm_seconds 默认值改为 5 秒 - 同步 default_params 中的默认值为 5 --- algorithms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/algorithms.py b/algorithms.py index f2a7c30..b69ef32 100644 --- a/algorithms.py +++ b/algorithms.py @@ -178,7 +178,7 @@ class IntrusionAlgorithm: def __init__( self, cooldown_seconds: int = 120, - confirm_seconds: int = 3, + confirm_seconds: int = 5, target_class: Optional[str] = None, ): self.cooldown_seconds = cooldown_seconds @@ -274,7 +274,7 @@ class AlgorithmManager: }, "intrusion": { "cooldown_seconds": 120, - "confirm_seconds": 3, + "confirm_seconds": 5, "target_class": None, }, } @@ -307,7 +307,7 @@ class AlgorithmManager: elif algorithm_type == "intrusion": self.algorithms[roi_id]["intrusion"] = IntrusionAlgorithm( cooldown_seconds=algo_params.get("cooldown_seconds", 120), - confirm_seconds=algo_params.get("confirm_seconds", 3), + confirm_seconds=algo_params.get("confirm_seconds", 5), target_class=algo_params.get("target_class"), )