@cryptotaxi247 / netdata-1 / commits / 38536eb42

Fix alerts to raise correctly when the delay and repeat parameters are used together (#12164)

Erdem Ergen committed Feb 17, 2022 at 16:12 UTC 38536eb4238b8e9018f96377eaf79636240fd424
1 file changed +1 -1
health/health.c
+1 -1
@@ -1004,7 +1004,7 @@ void *health_main(void *ptr) {
1004 RRDCALC *rc;
1005 for(rc = host->alarms; rc ; rc = rc->next) {
1006 int repeat_every = 0;
1007 - if(unlikely(rrdcalc_isrepeating(rc))) {
1007 + if(unlikely(rrdcalc_isrepeating(rc) && rc->delay_up_to_timestamp <= now)) {
1008 if(unlikely(rc->status == RRDCALC_STATUS_WARNING)) {
1009 rc->rrdcalc_flags &= ~RRDCALC_FLAG_RUN_ONCE;
1010 repeat_every = rc->warn_repeat_every;