From: Florian Forster Date: Sat, 25 Feb 2012 15:56:35 +0000 (+0100) Subject: bind plugin: Fix use of the "QType" types. X-Git-Tag: collectd-4.10.7~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d2215ad1ade0993380566de703037bd533ac8f7a;p=collectd.git bind plugin: Fix use of the "QType" types. This should resolve GitHub issue #21. Change-Id: I67e4b440a6fbc8a8608fa672fb3320b05f9c0a12 --- 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",