@cryptotaxi247 / netdata-1 / commits / 6655519f7

Remove check for old alarm status (#8978)

Fixed coverity issue (CID 358436)

Stelios Fragkakis committed May 12, 2020 at 19:23 UTC 6655519f73b1ac7a78e540923de9ba5783870caa
1 file changed -1
health/health_json.c
-1
@@ -354,7 +354,6 @@ void health_active_log_alarms_2json(RRDHOST *host, BUFFER *wb) {
354 for(ae = host->health_log.alarms; ae && count < max ; ae = ae->next) {
355
356 if(likely(!((ae->new_status == RRDCALC_STATUS_WARNING || ae->new_status == RRDCALC_STATUS_CRITICAL)
357 - && (ae->old_status != RRDCALC_STATUS_WARNING || ae->old_status != RRDCALC_STATUS_CRITICAL)
357 && !ae->updated_by_id)))
358 continue;
359