X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fapache.c;h=b306032b6c55fddb512b17c0fb24aa252271dbf2;hb=afb4cca6aac53445d5c34fd0935ce30f95737920;hp=9c4b496ab85c9a8f44bbbda2a2fed431d432734b;hpb=0c004681a480e919b779584814eb396f6e6948ca;p=collectd.git diff --git a/src/apache.c b/src/apache.c index 9c4b496a..b306032b 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);