From aa7f357b7638cb9a0d589f3c9a4f8cd13b60f8e3 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 24 Jul 2016 15:31:56 +0200 Subject: [PATCH] ganglia plugin: unsigned value can't be negative --- src/gmond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmond.c b/src/gmond.c index 53cdcbf5..70436d72 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -714,7 +714,7 @@ static int mc_handle_metadata_msg (Ganglia_metadata_msg *msg) /* {{{ */ msg_meta = msg->Ganglia_metadata_msg_u.gfull; - if (msg_meta.metric.tmax <= 0) + if (msg_meta.metric.tmax == 0) return (-1); map = metric_lookup (msg_meta.metric_id.name); -- 2.30.2