1
0
Fork 0

added LOSS to AllHeard-Tab

main
Kim Huebel 4 years ago
parent 4bdc2dd6dd
commit af1b9bfd53

@ -165,6 +165,7 @@
<th>Target</th> <th>Target</th>
<th>Source</th> <th>Source</th>
<th>Dur (s)</th> <th>Dur (s)</th>
<th>Loss</th>
<th>BER</th> <th>BER</th>
</tr> </tr>
</thead> </thead>
@ -343,16 +344,27 @@
{ className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 6 ] } { className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 6 ] }
], ],
'rowCallback': function(row, data, index){ 'rowCallback': function(row, data, index){
// Calculating BER // Calculating LOSS
if(parseFloat(data[6].substring(0, data[6].indexOf("%"))) <= 0.5){ if(parseInt(data[6].substring(0, data[6].indexOf("%"))) <= 5){
$(row).find('td:eq(6)').css('color', 'black'); $(row).find('td:eq(6)').css('color', 'black');
} }
if(parseFloat(data[6].substring(0, data[6].indexOf("%"))) > 0.5){ if(parseInt(data[6].substring(0, data[6].indexOf("%"))) > 5){
$(row).find('td:eq(6)').css('color', 'orange'); $(row).find('td:eq(6)').css('color', 'orange');
} }
if(parseFloat(data[6].substring(0, data[6].indexOf("%"))) > 2){ if(parseInt(data[6].substring(0, data[6].indexOf("%"))) > 15){
$(row).find('td:eq(6)').css('color', 'red'); $(row).find('td:eq(6)').css('color', 'red');
} }
// Calculating BER
if(parseFloat(data[7].substring(0, data[7].indexOf("%"))) <= 0.5){
$(row).find('td:eq(7)').css('color', 'black');
}
if(parseFloat(data[7].substring(0, data[7].indexOf("%"))) > 0.5){
$(row).find('td:eq(7)').css('color', 'orange');
}
if(parseFloat(data[7].substring(0, data[7].indexOf("%"))) > 2){
$(row).find('td:eq(7)').css('color', 'red');
}
}, },
"autoWidth": false "autoWidth": false
} ); } );

@ -643,6 +643,7 @@ function getAllHeard(document, event) {
getTarget(line), getTarget(line),
getSource(line), getSource(line),
getDuration(line), getDuration(line),
getLoss(line),
getBER(line) getBER(line)
] ).draw(false); ] ).draw(false);
} }

@ -1 +1 @@
var dashboard_version = "2021-02-06 13:36:29"; var dashboard_version = "2021-02-06 16:18:53";

Loading…
Cancel
Save