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

Function formatFeedRate

src/gui/NetworkDiagnosticsDialog.cpp:2214–2227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2212}
2213
2214static QString formatFeedRate(double hz, int streamCount = 1)
2215{
2216 if (hz <= 0.0) {
2217 return "Waiting for audio";
2218 }
2219 QString suffix;
2220 if (streamCount > 1) {
2221 suffix = " avg / stream";
2222 }
2223 if (hz >= 1000.0) {
2224 return QString("%1 kHz%2").arg(hz / 1000.0, 0, 'f', 1).arg(suffix);
2225 }
2226 return QString("%1 Hz%2").arg(hz, 0, 'f', 1).arg(suffix);
2227}
2228
2229static QString formatFeedDeficit(double deficitMs)
2230{

Callers 2

updateAudioStreamTableFunction · 0.85
refreshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected