From 5b6dd00210281b7794be7a9b1064497805937903 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 09:16:18 +0200 Subject: [PATCH] gmond plugin: Fix handling of COUNTER and ABSOLUTE data sources. --- src/gmond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2