MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / updateHostCountDisplay

Function updateHostCountDisplay

web/scripts/ragnar_modern.js:4757–4766  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4755 document.getElementById('wifidef-at-clients-tbody').innerHTML = '';
4756 }
4757 const roam = document.getElementById('wifidef-at-roam');
4758 roam.innerHTML = (d.roaming && d.roaming.length)
4759 ? '<b class="text-gray-300">Roaming clients:</b> ' + d.roaming.map(r =>
4760 `<span class="font-mono">${r.client}</span> (${r.reassoc + r.auth}×)`).join(', ')
4761 : '';
4762}
4763
4764// Clients from the last airtime scan, kept so the SSID filter can re-render.
4765let _wifidefClients = [];
4766
4767function _wifidefClientRow(c) {
4768 const airCol = c.airtime_pct >= 20 ? 'text-orange-400' : 'text-gray-300';
4769 const rate = c.rate_med != null ? `${c.rate_min}/${c.rate_med}/${c.rate_max}` : '—';

Callers 2

updateHostInTableFunction · 0.70
displayNetworkTableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected