X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugin.c;h=809c140f7e0d1ee8f9047e39d5a7c17eed4cac8a;hb=3b51243382501d5f3cdda79d30c7ecf39d22dd87;hp=bbede051bbfaea4972c120b4c3e4f79f5e777fe8;hpb=9706a2064c099666f24ba2fa8576629fc97310cd;p=collectd.git diff --git a/src/plugin.c b/src/plugin.c index bbede051..809c140f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -726,6 +726,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)