projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59ede0a
)
src/utils_threshold.c: Fix the `Instance' option inside of `Type' blocks.
author
Florian Forster
<octo@huhu.verplant.org>
Tue, 13 May 2008 10:08:14 +0000
(12:08 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Tue, 13 May 2008 10:08:14 +0000
(12:08 +0200)
Thanks to `kyrone' for pointing this out.
src/utils_threshold.c
patch
|
blob
|
history
diff --git
a/src/utils_threshold.c
b/src/utils_threshold.c
index
6c131ba
..
b4fb855
100644
(file)
--- 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))