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

Function formatFeedDeficit

src/gui/NetworkDiagnosticsDialog.cpp:2229–2238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2227}
2228
2229static QString formatFeedDeficit(double deficitMs)
2230{
2231 if (std::abs(deficitMs) < 1.0) {
2232 return "On time";
2233 }
2234 if (deficitMs < 0.0) {
2235 return QString("%1 ms ahead").arg(std::abs(deficitMs), 0, 'f', 1);
2236 }
2237 return QString("%1 ms behind").arg(deficitMs, 0, 'f', 1);
2238}
2239
2240static QString formatLateArrivals(qint64 latePackets, double latePacketsPerSecond)
2241{

Callers 2

updateAudioStreamTableFunction · 0.85
refreshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected