[collectd] [PATCH] Count zones instead of views when checking for a zone being found

Mike Battaglia battaglia01 at gmail.com
Fri Mar 29 23:17:21 CET 2013


---
 src/bind.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bind.c b/src/bind.c
index ddde840..d82db3a 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -667,7 +667,7 @@ static int bind_xml_stats_handle_zone (int
version, xmlDoc *doc, /* {{{ */
   xmlFree (zone_name);
   zone_name = NULL;

-  if (j >= views_num)
+  if (j >= view->zones_num)
   {
     xmlXPathFreeObject (path_obj);
     return (0);
--
1.7.9.5



More information about the collectd mailing list