X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapache.c;h=38035caa22e94cfdeeaac8ef1047ddf443a40fdd;hb=1917116cda67eb6d90f68d0b39a930d90cee416e;hp=c515e3c5db57a45bc04e706db387d02b5a27ba24;hpb=3307054b6ab46b51fdda4f528e72d119e9de3071;p=collectd.git diff --git a/src/apache.c b/src/apache.c index c515e3c5..38035caa 100644 --- a/src/apache.c +++ b/src/apache.c @@ -255,7 +255,7 @@ static int config_add (oconfig_item_t *ci) status = plugin_register_complex_read (/* group = */ NULL, /* name = */ callback_name, /* callback = */ apache_read_host, - /* interval = */ NULL, + /* interval = */ 0, /* user_data = */ &ud); } @@ -383,8 +383,7 @@ static int init_host (apache_t *st) /* {{{ */ if (st->timeout >= 0) curl_easy_setopt (st->curl, CURLOPT_TIMEOUT_MS, (long) st->timeout); else - curl_easy_setopt (st->curl, CURLOPT_TIMEOUT_MS, - CDTIME_T_TO_MS(plugin_get_interval())); + curl_easy_setopt (st->curl, CURLOPT_TIMEOUT_MS, (long) CDTIME_T_TO_MS(plugin_get_interval())); #endif return (0);