Echo-mode UTC should be that at start of Echo or Monitor cycle.

This commit is contained in:
Joe Taylor 2022-09-02 11:37:25 -04:00
parent 2b15f0bf0f
commit 1d8d6cf2ce

View File

@ -1623,7 +1623,13 @@ void MainWindow::dataSink(qint64 frames)
if(m_diskData) {
t0=t0.asprintf("%06d ",m_UTCdisk);
} else {
t0=QDateTime::currentDateTimeUtc().toString("hhmmss ");
QDateTime now=QDateTime::currentDateTimeUtc();
int ihr=now.toString("hh").toInt();
int imin=now.toString("mm").toInt();
int isec=now.toString("ss").toInt();
if(m_auto) isec=isec - isec%6;
if(!m_auto) isec=isec - isec%3;
t0=t0.asprintf("%02d%02d%02d",ihr,imin,isec);
}
int n=t0.toInt();
int nsec=((n/10000)*3600) + (((n/100)%100)*60) + (n%100);