From: Florian Forster Date: Thu, 18 Jun 2015 07:16:18 +0000 (+0200) Subject: gmond plugin: Fix handling of COUNTER and ABSOLUTE data sources. X-Git-Tag: collectd-5.5.1~101^2~13 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5b6dd00210281b7794be7a9b1064497805937903;p=collectd.git gmond plugin: Fix handling of COUNTER and ABSOLUTE data sources. --- 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;