projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/plugin.c: Initialize "next_read" field of read callbacks.
[collectd.git]
/
src
/
plugin.c
diff --git
a/src/plugin.c
b/src/plugin.c
index
cdd56bd
..
d895891
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-714,6
+714,9
@@
static int plugin_insert_read (read_func_t *rf)
int status;
llentry_t *le;
+ cdtime_t now = cdtime ();
+ CDTIME_T_TO_TIMESPEC (now, &rf->rf_next_read);
+
pthread_mutex_lock (&read_lock);
if (read_list == NULL)