diff --git a/templates/index.html b/templates/index.html index a6b9d70..9546533 100644 --- a/templates/index.html +++ b/templates/index.html @@ -196,7 +196,7 @@

📊 DAILY STATISTICS

- @@ -1100,7 +1100,11 @@ if (!networkLogs[clientId]) networkLogs[clientId] = ""; networkLogs[clientId] += `
[${esc(time)}] [${esc(protocol)}] ${esc(source.replace("🌐", "").trim())}
`; } else { - tableHTML += `${esc(time)}${esc(String(clientId).toUpperCase())}${esc(protocol)}${modeDisplay}${sourceBadge}${esc(slotDisplay)}${sourceHtml}${esc(target.trim())}${esc(row[6])}s${esc(row[7])}%${rssiDisplay}`; + // FILTRO TENDINA: Controlla il nodo selezionato prima di aggiungere la riga + const selectedFilter = document.getElementById('stat-node-filter').value; + if (selectedFilter === 'all' || String(clientId).toLowerCase() === selectedFilter) { + tableHTML += `${esc(time)}${esc(String(clientId).toUpperCase())}${esc(protocol)}${modeDisplay}${sourceBadge}${esc(slotDisplay)}${sourceHtml}${esc(target.trim())}${esc(row[6])}s${esc(row[7])}%${rssiDisplay}`; + } } }); tbody.innerHTML = tableHTML;