From: Ruben Kerkhof Date: Sun, 24 Jul 2016 13:31:56 +0000 (+0200) Subject: ganglia plugin: unsigned value can't be negative X-Git-Tag: collectd-5.6.0~170 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa7f357b7638cb9a0d589f3c9a4f8cd13b60f8e3;p=collectd.git ganglia plugin: unsigned value can't be negative --- 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);