X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgmond.c;h=ff4936d1d9767f810c8de2281568e8aceaa0ae0d;hb=49bd12d05d940a4e4b129c29e56599a8098f2164;hp=3c746c48887c3e678d42e2417b3d11bd38a7b1ec;hpb=f1ba2733d2c58fed90c13e9ae31cb7c1f3c5613e;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) {