X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=16ae3ababc1d48c421c85c814b2eb0499edd699e;hb=5c2993e4121feae745551be182221b31bc23ff97;hp=ac4cc512c63fd51dcdd9190814aca5e0eaf1cc7d;hpb=40e77dd34f9a8466165a8b7d724faeb337c90414;p=collectd.git diff --git a/src/curl.c b/src/curl.c index ac4cc512..16ae3aba 100644 --- a/src/curl.c +++ b/src/curl.c @@ -418,8 +418,7 @@ static int cc_page_init_curl (web_page_t *wp) /* {{{ */ if (wp->timeout >= 0) curl_easy_setopt (wp->curl, CURLOPT_TIMEOUT_MS, (long) wp->timeout); else - curl_easy_setopt (wp->curl, CURLOPT_TIMEOUT_MS, - CDTIME_T_TO_MS(plugin_get_interval())); + curl_easy_setopt (wp->curl, CURLOPT_TIMEOUT_MS, (long) CDTIME_T_TO_MS(plugin_get_interval())); #endif return (0);