X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_tsdb.c;h=615e8b75d1f79cec4ee58dcb83e62f782d6028ff;hb=f14a69e3e2b7ba0c3be2c28a9c4f0e07d2599df7;hp=d1d65caa3d1906afa8825c588750007df22e51f5;hpb=259ebe3df647b554f52ba9d49cd018b9698297bd;p=collectd.git 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);