projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa8f555
)
gmond plugin: Fix handling of COUNTER and ABSOLUTE data sources.
author
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 07:16:18 +0000
(09:16 +0200)
committer
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 07:25:41 +0000
(09:25 +0200)
src/gmond.c
patch
|
blob
|
history
diff --git
a/src/gmond.c
b/src/gmond.c
index
28be092
..
ff4936d
100644
(file)
--- 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;