mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-03 14:00:47 -05:00
[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]
This commit is contained in:
parent
d5f677ea47
commit
2fee153667
3 changed files with 13 additions and 6 deletions
5
CHANGES
5
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
|
||||
|
|
|
|||
|
|
@ -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 @@
|
|||
<h2>Incoming Requests</h2>
|
||||
<xsl:if test="system-property('xsl:vendor')!='Transformiix'">
|
||||
<!-- Non Mozilla specific markup -->
|
||||
<div class="pie" id="chart_incoming_requests">[graph incoming requests]</div>
|
||||
<div class="pie" id="chart_incoming_requests">[graph of incoming requests]</div>
|
||||
</xsl:if>
|
||||
<table class="counters">
|
||||
<xsl:for-each select="server/counters[@type="opcode"]/counter">
|
||||
|
|
@ -232,7 +233,7 @@
|
|||
<h3>Incoming Queries by Type</h3>
|
||||
<xsl:if test="system-property('xsl:vendor')!='Transformiix'">
|
||||
<!-- Non Mozilla specific markup -->
|
||||
<div class="pie" id="chart_incoming_qtypes">[graph incoming qtypes]</div>
|
||||
<div class="pie" id="chart_incoming_qtypes">[graph of incoming qtypes]</div>
|
||||
</xsl:if>
|
||||
<table class="counters">
|
||||
<xsl:for-each select="server/counters[@type="qtype"]/counter">
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue