mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
SDRdaemon: fix buffer r/w unbalance figure display when negative
This commit is contained in:
parent
5845eaec92
commit
a009d352be
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user