Fix incorrect alertCount

This commit is contained in:
IamTheFij
2025-02-09 13:27:36 -08:00
committed by Ian Fijolek
parent 03f0ab69fe
commit 0535bdf156
2 changed files with 42 additions and 0 deletions
+1
View File
@@ -149,6 +149,7 @@ func (monitor *Monitor) failure() (notice *AlertNotice) {
// If we're going to alert, increment count
if notice != nil {
monitor.alertCount++
notice.AlertCount = monitor.alertCount
}
return notice