[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user