X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fascent.c;h=2ba3c772d5f9f8116f4100b6f3484756cfbb8ef7;hb=eb2f3a4bdc78e1e2c4191b4e08d75d5eeea8be0e;hp=11175af5e6104afa7b39291fd77fd45441a0cb64;hpb=c21ce3b44f63d706b8b200a88047db74f1a51392;p=collectd.git diff --git a/src/ascent.c b/src/ascent.c index 11175af5..2ba3c772 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -594,8 +594,7 @@ static int ascent_init (void) /* {{{ */ if (timeout != NULL) curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, atol(timeout)); else - curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, - CDTIME_T_TO_MS(plugin_get_interval())); + curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, (long) CDTIME_T_TO_MS(plugin_get_interval())); #endif return (0);