From 6fd05a56774c9bb66cc0363d8c473da95269dcdd Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sun, 17 May 2026 05:57:28 +0800 Subject: [PATCH] auto-sync: 2026-05-17 05:57:28 --- src/daemon/health.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/daemon/health.py b/src/daemon/health.py index ffb292b..449dc39 100644 --- a/src/daemon/health.py +++ b/src/daemon/health.py @@ -30,6 +30,8 @@ class HealthChecker: self._stale_ticks: Dict[str, int] = {} # project_id → 是否已告警 self._alerted: Dict[str, bool] = {} + # project_id → 上次检查时的 event count + self._last_event_count: Dict[str, int] = {} def check(self, project_id: str, db_path: Path, tick_num: int) -> Dict[str, Any]: