X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fbind.c;h=a246f1aacfb10fc87e3e25d87b52513293e2ea82;hp=29f65d40c7051f452c9fb67cfb74fc88c37128e6;hb=a811574a6acbf87f23948411876a231fecaeb491;hpb=d53b2151ae583d6fc38b1a4dd49a3469635a84c8 diff --git a/src/bind.c b/src/bind.c index 29f65d40..a246f1aa 100644 --- a/src/bind.c +++ b/src/bind.c @@ -1538,8 +1538,9 @@ static int bind_init(void) /* {{{ */ curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 50L); #ifdef HAVE_CURLOPT_TIMEOUT_MS curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, - (timeout >= 0) ? (long)timeout : (long)CDTIME_T_TO_MS( - plugin_get_interval())); + (timeout >= 0) + ? (long)timeout + : (long)CDTIME_T_TO_MS(plugin_get_interval())); #endif return 0;