X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=16ae3ababc1d48c421c85c814b2eb0499edd699e;hb=ca4a6c8a856a9012270ec10389b08d54e70e3401;hp=ac4cc512c63fd51dcdd9190814aca5e0eaf1cc7d;hpb=d8a02e6c6f5875dfcab7b011d1f340e3a13c9e39;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);