From 092b925a2528acdfd3128388b4849371a90a2bb7 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Sun, 3 Nov 2024 19:20:34 -0500 Subject: [PATCH] Don't apply multiplier twice --- pkg/alerting/alerting.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/alerting/alerting.go b/pkg/alerting/alerting.go index f41e6bf..1a0eb03 100644 --- a/pkg/alerting/alerting.go +++ b/pkg/alerting/alerting.go @@ -179,7 +179,6 @@ func (as *alerter) eval(ctx context.Context, now time.Time, testMode bool) ([]Al if s.Score > as.cfg.AlertThreshold || testMode { if old, inCache := as.alertCache[s.ID]; !inCache || now.Sub(old.Timestamp) > as.renotify { - s.Score *= as.tgCache.ApplyAlertRules(s.ID, now) a, err := as.makeAlert(ctx, s, origScore) if err != nil { return nil, fmt.Errorf("makeAlert: %w", err)