mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-19 06:41:47 -05:00
Corrected time offset display
This commit is contained in:
parent
3d75f2f899
commit
fefbf223e7
@ -190,7 +190,7 @@ void GLScopeGUI::setTimeScaleDisplay()
|
|||||||
|
|
||||||
void GLScopeGUI::setTimeOfsDisplay()
|
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)
|
if(dt < 0.000001)
|
||||||
ui->timeOfsText->setText(tr("%1\nns").arg(dt * 1000000000.0));
|
ui->timeOfsText->setText(tr("%1\nns").arg(dt * 1000000000.0));
|
||||||
|
Loading…
Reference in New Issue
Block a user