From: Evan Hunt Date: Thu, 28 Feb 2013 18:03:35 +0000 (-0800) Subject: [v9_9] fix XSL glitch with empty query data X-Git-Tag: v9.9.3b2~31 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=2fee15366734cfbd09ebb1eacd2ac2bec9ee797d;p=thirdparty%2Fbind9.git [v9_9] fix XSL glitch with empty query data 3507. [bug] Statistics channel XSL (when built with --enable-newstats) had a glitch when attempting to chart query data before any queries had been received. [RT #32620] --- diff --git a/CHANGES b/CHANGES index 7aaf1acae29..67e113f629a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +3507. [bug] Statistics channel XSL (when built with + --enable-newstats) had a glitch when attempting + to chart query data before any queries had been + received. [RT #32620] + 3505. [bug] When setting "max-cache-size" and "max-acache-size", larger values than 4 gigabytes could not be set explicitly, though larger sizes were available diff --git a/bin/named/bind9.ver3.xsl b/bin/named/bind9.ver3.xsl index a2b6b9ee782..fe5b6455fed 100644 --- a/bin/named/bind9.ver3.xsl +++ b/bin/named/bind9.ver3.xsl @@ -50,10 +50,11 @@ // Server Incoming query Types while(g = graphs.shift()){ - // alert("going for: " + g.target); - drawChart(g.title,g.target,g.data); + // alert("going for: " + g.target); + if(g.data.length > 1){ + drawChart(g.title,g.target,g.data); + } } - } // Server Incoming Queries Types @@ -207,7 +208,7 @@

Incoming Requests

-
[graph incoming requests]
+
[graph of incoming requests]
@@ -232,7 +233,7 @@

Incoming Queries by Type

-
[graph incoming qtypes]
+
[graph of incoming qtypes]
diff --git a/bin/named/bind9.ver3.xsl.h b/bin/named/bind9.ver3.xsl.h index c6042c7a5f3..c55714a6fb7 100644 --- a/bin/named/bind9.ver3.xsl.h +++ b/bin/named/bind9.ver3.xsl.h @@ -53,9 +53,10 @@ static char xslmsg[] = " // Server Incoming query Types\n" " while(g = graphs.shift()){\n" " // alert(\"going for: \" + g.target);\n" + " if(g.data.length > 1){\n" " drawChart(g.title,g.target,g.data);\n" " }\n" - " \n" + " }\n" " }\n" " \n" " // Server Incoming Queries Types \n"