From: Florian Forster Date: Mon, 28 Sep 2009 13:45:13 +0000 (+0200) Subject: netapp plugin: Document the graceful return if statistics are not wanted. X-Git-Tag: collectd-4.9.0~73^2~21 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=7f97a8c67f141b68c1fa139f36ed5d4fd08e9c26 netapp plugin: Document the graceful return if statistics are not wanted. Unfortunately this behavior isn't exactly obvious. --- diff --git a/src/netapp.c b/src/netapp.c index c294f696..a4b30cc0 100644 --- a/src/netapp.c +++ b/src/netapp.c @@ -806,6 +806,7 @@ static int cna_query_wafl (host_config_t *host) /* {{{ */ if (host == NULL) return (EINVAL); + /* If WAFL was not configured, return without doing anything. */ if (host->cfg_wafl == NULL) return (0); @@ -998,6 +999,8 @@ static int cna_query_disk (host_config_t *host) /* {{{ */ if (host == NULL) return (EINVAL); + /* If the user did not configure disk statistics, return without doing + * anything. */ if (host->cfg_disk == NULL) return (0);