close #70, waver : fix bandwidth calculation for MT protocols

This commit is contained in:
Georgi Gerganov
2022-07-09 15:45:20 +03:00
parent 5dab5f22e0
commit f8303aaf0f

View File

@@ -1146,7 +1146,8 @@ void renderMain() {
}
{
const auto & protocol = settings.txProtocols[settings.protocolId];
ImGui::Text("%4.2f B/s", (float(0.715f*protocol.bytesPerTx)/(protocol.framesPerTx*statsCurrent.samplesPerFrame))*statsCurrent.sampleRate);
const float bandwidth = ((float(0.715f*protocol.bytesPerTx)/(protocol.framesPerTx*statsCurrent.samplesPerFrame))*statsCurrent.sampleRate)/protocol.extra;
ImGui::Text("%4.2f B/s", bandwidth);
}
{