From: Florian Forster Date: Thu, 1 Nov 2007 00:39:44 +0000 (+0100) Subject: src/configfile.c: Handle the `' block correctly. X-Git-Tag: collectd-4.3.0beta0~122 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e62c37240a71c45128337779c27f1a7a7c0cc839;p=collectd.git src/configfile.c: Handle the `' block correctly. I. e. pass it to `ut_config'. --- diff --git a/src/configfile.c b/src/configfile.c index 0310ca8a..4702e7ab 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -27,6 +27,7 @@ #include "common.h" #include "plugin.h" #include "configfile.h" +#include "utils_threshold.h" #define ESCAPE_NULL(str) ((str) == NULL ? "(null)" : (str)) @@ -298,6 +299,8 @@ static int dispatch_block (oconfig_item_t *ci) { if (strcasecmp (ci->key, "Plugin") == 0) return (dispatch_block_plugin (ci)); + else if (strcasecmp (ci->key, "Threshold") == 0) + return (ut_config (ci)); return (0); }