X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgmond.c;h=70436d722501c0368d2b38d4835149915f6e0ef7;hb=240a0b30cd9a478589ed00465bc081f810da05a9;hp=67e0406cd675644148cf3099b3c6cec379ca956d;hpb=c11a279ed19722816ccc56537a7d928ed06c6bab;p=collectd.git diff --git a/src/gmond.c b/src/gmond.c index 67e0406c..70436d72 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -30,9 +30,6 @@ #include "configfile.h" #include "utils_avltree.h" -#if HAVE_PTHREAD_H -# include -#endif #if HAVE_NETDB_H # include #endif @@ -717,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);