Fixed introduced bug relative to chart in index webpage.

This commit is contained in:
Mokaddem 2016-08-26 15:59:53 +02:00
parent 0c760d763b
commit 79be8ab934
2 changed files with 12 additions and 12 deletions

View file

@ -258,13 +258,13 @@ function load_queues() {
if (glob_tabvar.row1[i][0].split(".")[0] == 'Categ' || glob_tabvar.row1[i][0].split(".")[0] == 'Curve'){ if (glob_tabvar.row1[i][0].split(".")[0] == 'Categ' || glob_tabvar.row1[i][0].split(".")[0] == 'Curve'){
if (curves_labels2.indexOf(glob_tabvar.row1[i][0].split(".")[0]) == -1) { if (curves_labels2.indexOf(glob_tabvar.row1[i][0].split(".")[0]) == -1) {
tmp_tab2.push(0); tmp_tab2.push(0);
curves_labels2.push(glob_tabvar.row1[i][0].split(".")); curves_labels2.push(glob_tabvar.row1[i][0].split(".")[0]);
} }
} }
else { else {
if (curves_labels.indexOf(glob_tabvar.row1[i][0].split(".")[0]) == -1) { if (curves_labels.indexOf(glob_tabvar.row1[i][0].split(".")[0]) == -1) {
tmp_tab.push(0); tmp_tab.push(0);
curves_labels.push(glob_tabvar.row1[i][0].split(".")); curves_labels.push(glob_tabvar.row1[i][0].split(".")[0]);
} }
} }
} }
@ -337,14 +337,14 @@ function load_queues() {
for (i = 0; i < (glob_tabvar.row1).length; i++){ for (i = 0; i < (glob_tabvar.row1).length; i++){
if (glob_tabvar.row1[i][0].split(".")[0] == 'Categ' || glob_tabvar.row1[i][0].split(".")[0] == 'Curve'){ if (glob_tabvar.row1[i][0].split(".")[0] == 'Categ' || glob_tabvar.row1[i][0].split(".")[0] == 'Curve'){
if (queues_pushed.indexOf(glob_tabvar.row1[i][0].split(".")[0]) == -1) { if (queues_pushed.indexOf(glob_tabvar.row1[i][0].split(".")[0]) == -1) {
queues_pushed.push(glob_tabvar.row1[i][0].split(".")); queues_pushed.push(glob_tabvar.row1[i][0].split(".")[0]);
tmp_values2.push(glob_tabvar.row1[i][1]); tmp_values2.push(parseInt(glob_tabvar.row1[i][1]));
} }
} }
else { else {
if (curves_labels.indexOf(glob_tabvar.row1[i][0].split(".")[0]) == -1) { if (queues_pushed.indexOf(glob_tabvar.row1[i][0].split(".")[0]) == -1) {
queues_pushed.push(glob_tabvar.row1[i][0].split(".")); queues_pushed.push(glob_tabvar.row1[i][0].split(".")[0]);
tmp_values.push(glob_tabvar.row1[i][1]); tmp_values.push(parseInt(glob_tabvar.row1[i][1]));
} }
} }

View file

@ -66,14 +66,14 @@
</label> </label>
<strong style="top: 3px; position: relative;">Display queues</strong> <strong style="top: 3px; position: relative;">Display queues</strong>
<div> <div>
<div style="padding: 6px"> <div>
<table id="queue-color-legend"> <table id="queue-color-legend" class="table">
<thead> <thead>
</thead> </thead>
<tbody> <tbody>
<tr><td class="legendColorBox"><div style="border:1px solid #ccc;padding:1px"><div style="width:4px;height:0;border:5px solid #d0e9c6;overflow:hidden"></div></div></td><td> Working queues</td></tr> <tr><td class="legendColorBox" style="vertical-align: ; "><div style="border:1px solid #ccc;padding:1px"><div style="width:100%;height:0;border:5px solid #d0e9c6;overflow:hidden"></div></div></td><td> Working queues</td></tr>
<tr><td class="legendColorBox"><div style="border:1px solid #ccc;padding:1px"><div style="width:4px;height:0;border:5px solid #faf2cc;overflow:hidden"></div></div></td><td> Idling queues</td></tr> <tr><td class="legendColorBox" style="vertical-align: ;"><div style="border:1px solid #ccc;padding:1px"><div style="width:100%;height:0;border:5px solid #faf2cc;overflow:hidden"></div></div></td><td> Idling queues</td></tr>
<tr><td class="legendColorBox"><div style="border:1px solid #ccc;padding:1px"><div style="width:4px;height:0;border:5px solid #ebcccc;overflow:hidden"></div></div></td><td> Stucked queues</td></tr> <tr><td class="legendColorBox" style="vertical-align: ;"><div style="border:1px solid #ccc;padding:1px"><div style="width:100%;height:0;border:5px solid #ebcccc;overflow:hidden"></div></div></td><td> Stucked queues</td></tr>
</tbody> </tbody>
</table> </table>
</div> </div>