Commit 2b8dac99 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] fix XSL glitch with empty query data

3507.	[bug]		Statistics channel XSL had a glitch when attempting
			to chart query data before any queries had been
			received. [RT #32620]
parent 2a184ff8
3507. [bug] Statistics channel XSL had a glitch when attempting
to chart query data before any queries had been
received. [RT #32620]
3506. [func] When setting "max-cache-size" and "max-acache-size",
the keyword "unlimited" is no longer defined as equal
to 4 gigabytes (except on 32-bit platforms); it
......
......@@ -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">
......
......@@ -56,9 +56,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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment