diff options
author | Erdem Ergen <erdem@netdata.cloud> | 2022-02-17 16:12:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 16:12:26 +0300 |
commit | 38536eb4238b8e9018f96377eaf79636240fd424 (patch) | |
tree | 15f8564f8ee34a56004015bde1daf0004f27d67b /health | |
parent | 77fdbb65cf2581a72820eb0c05722862f93e67a8 (diff) |
Fix alerts to raise correctly when the delay and repeat parameters are used together (#12164)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/health/health.c b/health/health.c index e94339faec..06df691183 100644 --- a/health/health.c +++ b/health/health.c @@ -1004,7 +1004,7 @@ void *health_main(void *ptr) { RRDCALC *rc; for(rc = host->alarms; rc ; rc = rc->next) { int repeat_every = 0; - if(unlikely(rrdcalc_isrepeating(rc))) { + if(unlikely(rrdcalc_isrepeating(rc) && rc->delay_up_to_timestamp <= now)) { if(unlikely(rc->status == RRDCALC_STATUS_WARNING)) { rc->rrdcalc_flags &= ~RRDCALC_FLAG_RUN_ONCE; repeat_every = rc->warn_repeat_every; |