projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7ad0d6
)
src/daemon/utils_match.c: Add GAUGE_PERSIST logic to default_callback().
author
Florian Forster
<octo@collectd.org>
Tue, 1 Nov 2016 06:58:57 +0000
(07:58 +0100)
committer
Florian Forster
<octo@collectd.org>
Tue, 1 Nov 2016 06:58:57 +0000
(07:58 +0100)
src/daemon/utils_match.c
patch
|
blob
|
history
diff --git
a/src/daemon/utils_match.c
b/src/daemon/utils_match.c
index
39f7043
..
35102b6
100644
(file)
--- a/
src/daemon/utils_match.c
+++ b/
src/daemon/utils_match.c
@@
-100,7
+100,8
@@
static int default_callback (const char __attribute__((unused)) *str,
return (-1);
if ((data->values_num == 0)
- || (data->ds_type & UTILS_MATCH_CF_GAUGE_LAST))
+ || (data->ds_type & UTILS_MATCH_CF_GAUGE_LAST)
+ || (data->ds_type & UTILS_MATCH_CF_GAUGE_PERSIST))
{
data->value.gauge = value;
}