projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collectd.conf.in: remove extraneous pound sign
[collectd.git]
/
src
/
nginx.c
diff --git
a/src/nginx.c
b/src/nginx.c
index
1c537a8
..
4e4ce3b
100644
(file)
--- a/
src/nginx.c
+++ b/
src/nginx.c
@@
-181,6
+181,7
@@
static int init (void)
curl_easy_setopt (curl, CURLOPT_CAINFO, cacert);
}
curl_easy_setopt (curl, CURLOPT_CAINFO, cacert);
}
+#ifdef HAVE_CURLOPT_TIMEOUT_MS
if (timeout != NULL)
{
curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, atol(timeout));
if (timeout != NULL)
{
curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, atol(timeout));
@@
-190,6
+191,7
@@
static int init (void)
curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS,
CDTIME_T_TO_MS(plugin_get_interval()));
}
curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS,
CDTIME_T_TO_MS(plugin_get_interval()));
}
+#endif
return (0);
} /* void init */
return (0);
} /* void init */