X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgmond.c;h=ff4936d1d9767f810c8de2281568e8aceaa0ae0d;hb=5b6dd00210281b7794be7a9b1064497805937903;hp=28be0920ccf51cd43731f9fd2e4549e780fe4ea5;hpb=96e0f2341bace029acefe0a88bab96ae326c0ff5;p=collectd.git diff --git a/src/gmond.c b/src/gmond.c index 28be0920..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;