X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcurl_json.c;h=e6c0b51389e90fb68af73b12aae4f37aba9368ce;hb=a2c3d69ed4116206ca4fd67133dd52028a5ff29a;hp=aa1ae7975b66816ec6659c16e4feabd690301808;hpb=87e53c90047eb1ff8818105762ff997a5cfea4ad;p=collectd.git diff --git a/src/curl_json.c b/src/curl_json.c index aa1ae797..e6c0b513 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -600,7 +600,7 @@ static int cj_init_curl(cj_t *db) /* {{{ */ curl_easy_setopt(db->curl, CURLOPT_TIMEOUT_MS, (long)db->timeout); else if (db->interval > 0) curl_easy_setopt(db->curl, CURLOPT_TIMEOUT_MS, - (long)CDTIME_T_TO_MS(db->timeout)); + (long)CDTIME_T_TO_MS(db->interval)); else curl_easy_setopt(db->curl, CURLOPT_TIMEOUT_MS, (long)CDTIME_T_TO_MS(plugin_get_interval()));