From d2215ad1ade0993380566de703037bd533ac8f7a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 25 Feb 2012 16:56:35 +0100 Subject: [PATCH] bind plugin: Fix use of the "QType" types. This should resolve GitHub issue #21. Change-Id: I67e4b440a6fbc8a8608fa672fb3320b05f9c0a12 --- src/bind.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bind.c b/src/bind.c index 6e13a8be..28c1e56a 100644 --- a/src/bind.c +++ b/src/bind.c @@ -791,7 +791,7 @@ static int bind_xml_stats_handle_view (int version, xmlDoc *doc, /* {{{ */ list_info_ptr_t list_info = { plugin_instance, - /* type = */ "dns_qtype_gauge" + /* type = */ "dns_qtype" }; ssnprintf (plugin_instance, sizeof (plugin_instance), "%s-qtypes", @@ -822,13 +822,14 @@ static int bind_xml_stats_handle_view (int version, xmlDoc *doc, /* {{{ */ doc, path_ctx, current_time, DS_TYPE_COUNTER); } /* }}} */ + /* Record types in the cache */ if (view->cacherrsets != 0) /* {{{ */ { char plugin_instance[DATA_MAX_NAME_LEN]; list_info_ptr_t list_info = { plugin_instance, - /* type = */ "dns_qtype_gauge" + /* type = */ "dns_qtype_cached" }; ssnprintf (plugin_instance, sizeof (plugin_instance), "%s-cache_rr_sets", -- 2.11.0