X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcurl_json.c;h=4d8677acee2866f1026ac9b711ef92188e01f250;hb=2412d3ca76f7ac24e67543720c1d385188da0ce3;hp=8e09bd82262bad42d994a4f7d0ce6aaec02d6986;hpb=c6baff42e7e8e547eb7ca7817c0e0e07ccea95db;p=collectd.git diff --git a/src/curl_json.c b/src/curl_json.c index 8e09bd82..4d8677ac 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()));