projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbd00d8
)
src/daemon/plugin.c: explicitly declare vl.interval
author
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 10 Jan 2017 20:22:08 +0000
(21:22 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 10 Jan 2017 20:22:08 +0000
(21:22 +0100)
This properly gets rid of the warning reported in #2108
Thanks to @charliesignalfx for suggesting this and reporting the issue !
src/daemon/plugin.c
patch
|
blob
|
history
diff --git
a/src/daemon/plugin.c
b/src/daemon/plugin.c
index
302c777
..
0f06737
100644
(file)
--- a/
src/daemon/plugin.c
+++ b/
src/daemon/plugin.c
@@
-159,6
+159,7
@@
static int plugin_update_internal_statistics(void) { /* {{{ */
/* Initialize `vl' */
value_list_t vl = VALUE_LIST_INIT;
sstrncpy(vl.plugin, "collectd", sizeof(vl.plugin));
+ vl.interval = plugin_get_interval();
/* Write queue */
sstrncpy(vl.plugin_instance, "write_queue", sizeof(vl.plugin_instance));