(cidr)
| 21322 | const networkStats = document.getElementById('network-stats'); |
| 21323 | if (!networkStats) return; |
| 21324 | |
| 21325 | let html = ''; |
| 21326 | |
| 21327 | // Connection summary |
| 21328 | html += ` |
| 21329 | <div class="bg-slate-800 rounded p-3"> |
| 21330 | <h4 class="font-medium mb-2">Connections</h4> |
| 21331 | <div class="text-2xl font-bold text-blue-400">${data.total_connections}</div> |
| 21332 | <div class="text-xs text-gray-400">Total active</div> |
| 21333 | </div> |
| 21334 | `; |
| 21335 | |
| 21336 | // Interface statistics |
| 21337 | Object.entries(data.interfaces).slice(0, 4).forEach(([name, stats]) => { |
| 21338 | html += ` |
nothing calls this directly
no test coverage detected