MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / formatDrop

Function formatDrop

src/gui/NetworkDiagnosticsDialog.cpp:2137–2144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2135}
2136
2137static QString formatDrop(const PanadapterStream::CategoryStats& cs)
2138{
2139 if (cs.packets == 0) {
2140 return "0 / 0";
2141 }
2142 const double pct = (cs.errors * 100.0) / cs.packets;
2143 return QString("%1 / %2 (%3%)").arg(cs.errors).arg(cs.packets).arg(pct, 0, 'f', 2);
2144}
2145
2146static double lossPercent(const PanadapterStream::CategoryStats& cs)
2147{

Callers 1

refreshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected