From: Yves Mettier Date: Wed, 14 Oct 2015 16:25:13 +0000 (+0100) Subject: Bugfix on write_tsdb configuration parser X-Git-Tag: collectd-5.8.0~262^2~6 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=f14a69e3e2b7ba0c3be2c28a9c4f0e07d2599df7 Bugfix on write_tsdb configuration parser --- diff --git a/src/write_tsdb.c b/src/write_tsdb.c index d1d65caa..615e8b75 100644 --- 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);