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

Function lossPercent

src/gui/NetworkDiagnosticsDialog.cpp:2146–2152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2144}
2145
2146static double lossPercent(const PanadapterStream::CategoryStats& cs)
2147{
2148 if (cs.packets <= 0) {
2149 return 0.0;
2150 }
2151 return (cs.errors * 100.0) / cs.packets;
2152}
2153
2154static double kbpsFromBytes(qint64 bytesDelta, double elapsedSeconds)
2155{

Callers 1

sampleNowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected