Corrected time offset display

This commit is contained in:
f4exb 2015-07-12 23:21:37 +02:00
parent 3d75f2f899
commit fefbf223e7
1 changed files with 1 additions and 1 deletions

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));