From dae0882e0fb140e2509ef3f372562e539b2c7797 Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Fri, 13 Feb 2026 11:29:15 -0600 Subject: [PATCH] min checks bug --- src/monitor.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/monitor.py b/src/monitor.py index c242a34..3f0cf2b 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -277,15 +277,8 @@ class ServiceMonitor: if total_count == 0: return None - # Minimum-data thresholds - if hours: - expected_checks = (hours * 3600) / CHECK_INTERVAL - minimum_checks = max(3, expected_checks * 0.5) - if total_count < minimum_checks: - return None - else: - if total_count < 3: - return None + if total_count < 3: + return None return round((online_count / total_count) * 100, 2) finally: