[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:
Evan Hunt 2013-02-28 10:03:35 -08:00
parent d5f677ea47
commit 2fee153667
3 changed files with 13 additions and 6 deletions

View file

@ -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

View file

@ -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=&quot;opcode&quot;]/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=&quot;qtype&quot;]/counter">

View file

@ -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"