X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=inline;f=src%2Fapache.c;h=b306032b6c55fddb512b17c0fb24aa252271dbf2;hb=ac077f078300f47d5a6b75aaeeb0999799309283;hp=9c4b496ab85c9a8f44bbbda2a2fed431d432734b;hpb=fc6f1e3d33d646391adb5cedc62e7b3904c15003;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);