mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-21 19:48:54 -04:00
Adjust the UTC wrap-around problem to yield time difference within +/- 12 hours.
This commit is contained in:
parent
28a62c9aba
commit
731230315b
@ -1635,6 +1635,7 @@ void MainWindow::dataSink(qint64 frames)
|
||||
int nsec=((n/10000)*3600) + (((n/100)%100)*60) + (n%100);
|
||||
if(!m_echoRunning) m_echoSec0=nsec;
|
||||
n=(nsec-m_echoSec0 + 864000)%86400;
|
||||
if(n>43200) n-=86400;
|
||||
m_echoRunning=true;
|
||||
QString t;
|
||||
t = t.asprintf("%6d %5.2f %7d %7.1f %7d %7d %7d %7.1f %7.1f",n,xlevel,
|
||||
|
Loading…
Reference in New Issue
Block a user