diff --git a/html/index.html b/html/index.html index f2f9fe9..10873d9 100644 --- a/html/index.html +++ b/html/index.html @@ -165,6 +165,7 @@ Target Source Dur (s) + Loss BER @@ -343,16 +344,27 @@ { className: "dt-nowrap", "targets": [ 0, 1, 2, 3, 6 ] } ], 'rowCallback': function(row, data, index){ - // Calculating BER - if(parseFloat(data[6].substring(0, data[6].indexOf("%"))) <= 0.5){ + // Calculating LOSS + if(parseInt(data[6].substring(0, data[6].indexOf("%"))) <= 5){ $(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'); } - 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'); } + + // 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 } ); diff --git a/html/js/functions.js b/html/js/functions.js index 300bd26..03c7e84 100644 --- a/html/js/functions.js +++ b/html/js/functions.js @@ -643,6 +643,7 @@ function getAllHeard(document, event) { getTarget(line), getSource(line), getDuration(line), + getLoss(line), getBER(line) ] ).draw(false); } diff --git a/html/js/version.js b/html/js/version.js index b13445d..d520855 100644 --- a/html/js/version.js +++ b/html/js/version.js @@ -1 +1 @@ -var dashboard_version = "2021-02-06 13:36:29"; +var dashboard_version = "2021-02-06 16:18:53";