mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
min checks bug
This commit is contained in:
@@ -277,13 +277,6 @@ class ServiceMonitor:
|
|||||||
if total_count == 0:
|
if total_count == 0:
|
||||||
return None
|
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:
|
if total_count < 3:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user