X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fascent.c;h=2ba3c772d5f9f8116f4100b6f3484756cfbb8ef7;hb=65caa4f56cbb859bf1538e8b309eb23b3294c9de;hp=11175af5e6104afa7b39291fd77fd45441a0cb64;hpb=d5565943cd7ee338e5b750a027faff8115df4c72;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);