X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgmond.c;h=ff4936d1d9767f810c8de2281568e8aceaa0ae0d;hb=5b6dd00210281b7794be7a9b1064497805937903;hp=3c746c48887c3e678d42e2417b3d11bd38a7b1ec;hpb=76a7816d2c066f2feff5c77e7da58df4dbc982c2;p=collectd.git diff --git a/src/gmond.c b/src/gmond.c index 3c746c48..ff4936d1 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -660,7 +660,7 @@ static int mc_handle_value_msg (Ganglia_value_msg *msg) /* {{{ */ if ((map->ds_type == DS_TYPE_COUNTER) || (map->ds_type == DS_TYPE_ABSOLUTE)) val_copy = value_counter; - if (map->ds_type == DS_TYPE_GAUGE) + else if (map->ds_type == DS_TYPE_GAUGE) val_copy = value_gauge; else if (map->ds_type == DS_TYPE_DERIVE) val_copy = value_derive; @@ -879,7 +879,7 @@ static int mc_receive_thread_start (void) /* {{{ */ mc_receive_thread_loop = 1; - status = pthread_create (&mc_receive_thread_id, /* attr = */ NULL, + status = plugin_thread_create (&mc_receive_thread_id, /* attr = */ NULL, mc_receive_thread, /* args = */ NULL); if (status != 0) {