summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2022-09-28 11:42:21 +0000
committerGitHub <noreply@github.com>2022-09-28 11:42:21 +0000
commit0190a1b556a78e50c5507bbfdbe34c63ebb56931 (patch)
tree680ceb3d1f4cd3fb803f850bbf64aa35a2a84d99 /health
parent8e886651f1f39e5281f8e19f3cd9cb65772d2e27 (diff)
Change cast to remove coverity warnings (#13735)
Diffstat (limited to 'health')
-rw-r--r--health/health_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/health/health_json.c b/health/health_json.c
index e9ef13428b..2dd59fd46a 100644
--- a/health/health_json.c
+++ b/health/health_json.c
@@ -397,12 +397,12 @@ void health_alarms_values2json(RRDHOST *host, BUFFER *wb, int all) {
buffer_strcat(wb, "\n\t}\n}\n");
}
-static int have_recent_alarm(RRDHOST *host, uint32_t alarm_id, time_t mark)
+static int have_recent_alarm(RRDHOST *host, uint32_t alarm_id, uint32_t mark)
{
ALARM_ENTRY *ae = host->health_log.alarms;
while(ae) {
- if (ae->alarm_id == alarm_id && ae->unique_id > (unsigned int) mark &&
+ if (ae->alarm_id == alarm_id && ae->unique_id > mark &&
(ae->new_status != RRDCALC_STATUS_WARNING && ae->new_status != RRDCALC_STATUS_CRITICAL))
return 1;
ae = ae->next;