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