[collectd] [PATCH 2/2] Removed bogus checking in ut_config.
Andres J. Diaz
ajdiaz at connectical.com
Tue Mar 1 17:25:22 CET 2011
Since threshold is a plugin, the main config block (<Plugin "threshold">)
cannot contain only one keyword (as was mandatory in previous versions),
so checking must be removed.
Signed-off-by: Andres J. Diaz <ajdiaz at connectical.com>
---
src/threshold.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/src/threshold.c b/src/threshold.c
index 277b453..7bbc59e 100644
--- a/src/threshold.c
+++ b/src/threshold.c
@@ -520,13 +520,6 @@ int ut_config (oconfig_item_t *ci)
threshold_t th;
- if (ci->values_num != 0)
- {
- ERROR ("threshold values: The `Threshold' block may not have any "
- "arguments.");
- return (-1);
- }
-
if (threshold_tree == NULL)
{
threshold_tree = c_avl_create ((void *) strcmp);
--
1.7.1
More information about the collectd
mailing list