Changeset 8418 in ntrip for branches/BNC_2.12/src/bncgetthread.cpp
- Timestamp:
- Jul 13, 2018, 1:14:56 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncgetthread.cpp
r8273 r8418 53 53 #include "bnccore.h" 54 54 #include "bncutils.h" 55 #include "bnctime.h" 55 56 #include "bnczerodecoder.h" 56 57 #include "bncnetqueryv0.h" … … 620 621 if (!_rawFile) { 621 622 QString prn(obs._prn.toString().c_str()); 622 long iSec = long(floor(obs._time.gpssec() + 0.5)); 623 long obsTime = obs._time.gpsw() * 7 * 24 * 3600 + iSec; 624 QMap<QString, long>::const_iterator it = _prnLastEpo.find(prn); 623 bncTime obsTime = obs._time; 624 QMap<QString, bncTime>::const_iterator it = _prnLastEpo.find(prn); 625 625 if (it != _prnLastEpo.end()) { 626 longoldTime = it.value();626 bncTime oldTime = it.value(); 627 627 if (obsTime < oldTime) { 628 emit(newMessage(_staID + ": old observation " + prn.toAscii(), 629 false)); 628 emit(newMessage(_staID + ": old observation " + prn.toLatin1(), false)); 630 629 continue; 631 630 } else if (obsTime == oldTime) { 632 emit(newMessage( 633 _staID + ": observation coming more than once " 634 + prn.toAscii(), false)); 631 emit(newMessage(_staID + ": observation coming more than once " 632 + prn.toLatin1(), false)); 635 633 continue; 636 634 } … … 638 636 _prnLastEpo[prn] = obsTime; 639 637 } 638 640 639 641 640 decoder()->dumpRinexEpoch(obs, _format);
Note:
See TracChangeset
for help on using the changeset viewer.