projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bugfix on write_tsdb configuration parser
[collectd.git]
/
src
/
write_tsdb.c
diff --git
a/src/write_tsdb.c
b/src/write_tsdb.c
index
d1d65ca
..
615e8b7
100644
(file)
--- a/
src/write_tsdb.c
+++ b/
src/write_tsdb.c
@@
-593,7
+593,7
@@
static int wt_config(oconfig_item_t *ci) {
if (strcasecmp("Node", child->key) == 0)
wt_config_tsd(child);
- if (strcasecmp("DNS_Cache_TTL", child->key) == 0) {
+
else
if (strcasecmp("DNS_Cache_TTL", child->key) == 0) {
int ttl;
cf_util_get_int(child, &ttl);
dnsttl = TIME_T_TO_CDTIME_T(ttl);