From: Florian Forster Date: Tue, 13 May 2008 10:08:14 +0000 (+0200) Subject: src/utils_threshold.c: Fix the `Instance' option inside of `Type' blocks. X-Git-Tag: collectd-4.4.1~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=48f07421f10e0b4f19713ea86875f82eb15714f3;p=collectd.git src/utils_threshold.c: Fix the `Instance' option inside of `Type' blocks. Thanks to `kyrone' for pointing this out. --- diff --git a/src/utils_threshold.c b/src/utils_threshold.c index 6c131ba6..b4fb8554 100644 --- a/src/utils_threshold.c +++ b/src/utils_threshold.c @@ -299,7 +299,7 @@ static int ut_config_type (const threshold_t *th_orig, oconfig_item_t *ci) if (strcasecmp ("Instance", option->key) == 0) status = ut_config_type_instance (&th, option); - if (strcasecmp ("DataSource", option->key) == 0) + else if (strcasecmp ("DataSource", option->key) == 0) status = ut_config_type_datasource (&th, option); else if ((strcasecmp ("WarningMax", option->key) == 0) || (strcasecmp ("FailureMax", option->key) == 0))