From: Sebastian Harl Date: Wed, 24 Oct 2012 16:33:28 +0000 (+0200) Subject: postgresql plugin: Fixed config key check for block. X-Git-Tag: collectd-5.2.0~13^2~15 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d96ebc8e6138a7ddf31401aa402bf835b614f3c6;p=collectd.git postgresql plugin: Fixed config key check for block. A missing "else" caused incorrect “Ignoring unknown config key "Statement"” warning messages. --- diff --git a/src/postgresql.c b/src/postgresql.c index 9aa7a675..594fa32e 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -992,7 +992,7 @@ static int c_psql_config_writer (oconfig_item_t *ci) if (strcasecmp ("Statement", c->key) == 0) status = cf_util_get_string (c, &writer->statement); - if (strcasecmp ("StoreRates", c->key) == 0) + else if (strcasecmp ("StoreRates", c->key) == 0) status = cf_util_get_boolean (c, &writer->store_rates); else log_warn ("Ignoring unknown config key \"%s\".", c->key);