1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

SDRdaemon: fix buffer r/w unbalance figure display when negative

This commit is contained in:
f4exb 2016-03-19 05:10:02 +01:00
parent 5845eaec92
commit a009d352be

View File

@ -407,7 +407,7 @@ void SDRdaemonGui::updateWithStreamTime()
s = QString::number(m_nbLz4SuccessfulDecodes, 'f', 0); s = QString::number(m_nbLz4SuccessfulDecodes, 'f', 0);
ui->lz4DecodesOKText->setText(tr("%1").arg(s)); ui->lz4DecodesOKText->setText(tr("%1").arg(s));
s = QString::number((m_bufferGauge < 0 ? 50 + m_bufferGauge : 50 - m_bufferGauge), 'f', 0); s = QString::number((m_bufferGauge < 0 ? -50 - m_bufferGauge : 50 - m_bufferGauge), 'f', 0);
ui->bufferRWBalanceText->setText(tr("%1").arg(s)); ui->bufferRWBalanceText->setText(tr("%1").arg(s));
ui->bufferGaugeNegative->setValue((m_bufferGauge < 0 ? 50 + m_bufferGauge : 0)); ui->bufferGaugeNegative->setValue((m_bufferGauge < 0 ? 50 + m_bufferGauge : 0));