ganglia plugin: unsigned value can't be negative
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 13:31:56 +0000 (15:31 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 13:32:22 +0000 (15:32 +0200)
src/gmond.c

index 53cdcbf..70436d7 100644 (file)
@@ -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);