From 9bcb04890bd62ae59bf49564adab3f5e09593871 Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Mon, 7 Nov 2022 13:28:06 +0100 Subject: [PATCH] Fix rssi_norm overflow --- static/script.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/static/script.js b/static/script.js index ec27d63..a320443 100644 --- a/static/script.js +++ b/static/script.js @@ -171,8 +171,10 @@ function parseResult(command, infos_array) { // Iterate over array for (var i = 0, l=infos_array.length; i " + infos_array[i].time + " / " + infos_array[i].leng; - medias_status[infos_array[i].id] = infos_array[i].pos; + if (infos_array[i].status) { + document.getElementById("status_"+infos_array[i].host).innerHTML = infos_array[i].file + "
" + infos_array[i].time + " / " + infos_array[i].leng; + medias_status[infos_array[i].id] = infos_array[i].pos; + } // Find currently playing element //~ var pl_length = document.getElementById("timeline").getAttribute("length"); //~ for (j=0,k=pl_length;j4?4:rssi_norm; i