X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgmond.c;h=0811c2b919d3a29c6d14b11b259377468781c8cb;hb=09c6a320f3cb36b5dbb2c2ce43858f33be7acf9b;hp=a00b26db0d5253fc649e5621a5e0f62dc2ba0ccf;hpb=f2389f97fbec15f49dcd1d9b06b3b6bbd0837e8a;p=collectd.git diff --git a/src/gmond.c b/src/gmond.c index a00b26db..0811c2b9 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -665,7 +665,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;