1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-17 13:51:47 -05:00

Corrected time offset display

This commit is contained in:
f4exb 2015-07-12 23:21:37 +02:00
parent 3d75f2f899
commit fefbf223e7

View File

@ -190,7 +190,7 @@ void GLScopeGUI::setTimeScaleDisplay()
void GLScopeGUI::setTimeOfsDisplay()
{
qreal dt = (m_glScope->getTraceSize() * (m_timeOffset/100.0) / m_sampleRate) / (qreal)m_timeBase;
qreal dt = m_glScope->getTraceSize() * (m_timeOffset/100.0) / m_sampleRate;
if(dt < 0.000001)
ui->timeOfsText->setText(tr("%1\nns").arg(dt * 1000000000.0));