projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_redis plugin: Use the prefix for the "values" set, too.
[collectd.git]
/
src
/
ascent.c
diff --git
a/src/ascent.c
b/src/ascent.c
index
66640d9
..
11175af
100644
(file)
--- a/
src/ascent.c
+++ b/
src/ascent.c
@@
-590,11
+590,13
@@
static int ascent_init (void) /* {{{ */
if (cacert != NULL)
curl_easy_setopt (curl, CURLOPT_CAINFO, cacert);
if (cacert != NULL)
curl_easy_setopt (curl, CURLOPT_CAINFO, cacert);
+#ifdef HAVE_CURLOPT_TIMEOUT_MS
if (timeout != NULL)
if (timeout != NULL)
- curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, ato
i
(timeout));
+ curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, ato
l
(timeout));
else
curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS,
CDTIME_T_TO_MS(plugin_get_interval()));
else
curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS,
CDTIME_T_TO_MS(plugin_get_interval()));
+#endif
return (0);
} /* }}} int ascent_init */
return (0);
} /* }}} int ascent_init */