projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adc792f
)
core: Set 'interval' value in plugin context to match read callback interval
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 4 Jul 2018 05:00:02 +0000
(12:00 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 4 Jul 2018 05:00:02 +0000
(12:00 +0700)
src/daemon/plugin.c
patch
|
blob
|
history
diff --git
a/src/daemon/plugin.c
b/src/daemon/plugin.c
index
92e1ab2
..
b91672f
100644
(file)
--- a/
src/daemon/plugin.c
+++ b/
src/daemon/plugin.c
@@
-1162,6
+1162,7
@@
int plugin_register_read(const char *name, int (*callback)(void)) {
rf->rf_name = strdup(name);
rf->rf_type = RF_SIMPLE;
rf->rf_interval = plugin_get_interval();
+ rf->rf_ctx.interval = rf->rf_interval;
status = plugin_insert_read(rf);
if (status != 0) {
@@
-1203,6
+1204,7
@@
int plugin_register_complex_read(const char *group, const char *name,
}
rf->rf_ctx = plugin_get_ctx();
+ rf->rf_ctx.interval = rf->rf_interval;
status = plugin_insert_read(rf);
if (status != 0) {