(phase)
| 6740 | const d = await postAPI('/api/net/iperf3', { server: server, duration: dur, reverse: reverse }); |
| 6741 | if (!d.success) { |
| 6742 | out.innerHTML = d.missing_tool ? _ndMissingTool(d, 'runIperf') |
| 6743 | : '<p class="text-sm text-red-400">Error: ' + escapeHtml(d.error || 'failed') + '</p>'; |
| 6744 | return; |
| 6745 | } |
| 6746 | const card = (label, val, unit) => `<div class="bg-slate-800 rounded-lg p-4 text-center"> |
| 6747 | <div class="text-2xl font-bold text-Ragnar-400">${val}<span class="text-sm text-gray-400"> ${unit}</span></div> |
| 6748 | <div class="text-xs uppercase text-gray-500 mt-1">${label}</div></div>`; |
| 6749 | let extra = ''; |
| 6750 | if (d.protocol === 'TCP') extra = card('Retransmits', d.retransmits != null ? d.retransmits : '—', ''); |
no outgoing calls
no test coverage detected