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

Function formatNetworkSeqErrors

src/gui/MainWindowHelpers.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49QString formatNetworkSeqErrors(int errors, int packets)
50{
51 if (packets == 0) {
52 return "0 / 0 packets";
53 }
54
55 const double pct = (errors * 100.0) / packets;
56 return QString("%1 / %2 packets (%3%)")
57 .arg(errors)
58 .arg(packets)
59 .arg(pct, 0, 'f', 2);
60}
61
62namespace {
63// Distinct name (not an overload of formatNetworkSeqErrors): an

Callers 2

formatCategorySeqErrorsFunction · 0.85
buildNetworkTooltipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected