X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fipmi.c;h=fada5bdc3462a1d40396c9aa3fc4fe71f1dbe1e9;hb=HEAD;hp=f341320ddec54ed9135f6cec34759f30eb74ecd7;hpb=9e7b3a035836474cb4af253b248de30d5eb97f4d;p=collectd.git diff --git a/src/ipmi.c b/src/ipmi.c index f341320d..fada5bdc 100644 --- a/src/ipmi.c +++ b/src/ipmi.c @@ -664,12 +664,12 @@ static int c_ipmi_init (void) int status; /* Don't send `ADD' notifications during startup (~ 1 minute) */ - time_t iv = CDTIME_T_TO_TIME_T (interval_g); + time_t iv = CDTIME_T_TO_TIME_T (plugin_get_interval ()); c_ipmi_init_in_progress = 1 + (60 / iv); c_ipmi_active = 1; - status = pthread_create (&thread_id, /* attr = */ NULL, thread_main, + status = plugin_thread_create (&thread_id, /* attr = */ NULL, thread_main, /* user data = */ NULL); if (status != 0) {