From 180a62efda6f3327579898ea61b6c5ecd0a9900e Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 24 Jun 2016 17:31:25 +0000 Subject: [PATCH] Fix a regression in WSPR saved file names from r6806 git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6807 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 35ba7b9a4..6b8d8a340 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1080,7 +1080,7 @@ void MainWindow::dataSink(qint64 frames) if(!m_mode.startsWith ("WSPR")) decode(); //Start decoder if(!m_diskData) { //Always save; may delete later - auto const& period_start = now.addSecs (-now.time ().minute () % (m_TRperiod / 60)); + auto const& period_start = now.addSecs (-(now.time ().minute () % (m_TRperiod / 60)) * 60); m_fnameWE = m_config.save_directory ().absoluteFilePath (period_start.toString ("yyMMdd_hhmm")); m_fileToSave.clear (); // the following is potential a threading hazard - not a good @@ -1222,7 +1222,7 @@ void MainWindow::fastSink(qint64 frames) m_bFastDecodeCalled=true; decode(); } - if(!m_diskData) { + if(!m_diskData) { // Always save; may delete later QDateTime now {QDateTime::currentDateTimeUtc()}; auto const& period_start = now.addSecs (-now.time ().second () % m_TRperiod); m_fnameWE = m_config.save_directory ().absoluteFilePath (period_start.toString ("yyMMdd_hhmmss"));