From: Sebastian Harl Date: Fri, 17 Jun 2011 07:05:48 +0000 (+0200) Subject: threshold plugin: Dont check for interesting values if there are no thresholds. X-Git-Tag: collectd-5.1.0~60 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f2f52fa0700944578af732abf40fc40f3f65d0a6;p=collectd.git threshold plugin: Dont check for interesting values if there are no thresholds. --- diff --git a/src/threshold.c b/src/threshold.c index 7bbc59ef..88616e95 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -990,6 +990,10 @@ static int ut_missing (const value_list_t *vl, char identifier[6 * DATA_MAX_NAME_LEN]; notification_t n; + /* dispatch notifications for "interesting" values only */ + if (threshold_tree == NULL) + return (0); + th = threshold_search (vl); if (th == NULL) return (0);