diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2020-05-12 19:23:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 19:23:38 +0300 |
commit | 6655519f73b1ac7a78e540923de9ba5783870caa (patch) | |
tree | e13eb6c34ce7b485bf9837b6e640a42385a255dc /health/health_json.c | |
parent | 8562dbbb343c28c3ccf473ebe590587fdca2a160 (diff) |
Remove check for old alarm status (#8978)
Fixed coverity issue (CID 358436)
Diffstat (limited to 'health/health_json.c')
-rw-r--r-- | health/health_json.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/health/health_json.c b/health/health_json.c index 5105314614..e6faaf5828 100644 --- a/health/health_json.c +++ b/health/health_json.c @@ -354,7 +354,6 @@ void health_active_log_alarms_2json(RRDHOST *host, BUFFER *wb) { for(ae = host->health_log.alarms; ae && count < max ; ae = ae->next) { if(likely(!((ae->new_status == RRDCALC_STATUS_WARNING || ae->new_status == RRDCALC_STATUS_CRITICAL) - && (ae->old_status != RRDCALC_STATUS_WARNING || ae->old_status != RRDCALC_STATUS_CRITICAL) && !ae->updated_by_id))) continue; |