Changeset 717 in ntrip
- Timestamp:
- Mar 10, 2008, 12:19:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r716 r717 398 398 bool begCorrupt = false; 399 399 bool endCorrupt = false; 400 int oldSec= 0; 401 int newSec = 0; 400 int oldSecGPS= 0; 401 int newSecGPS = 0; 402 int oldSecUTC= 0; 403 int newSecUTC = 0; 402 404 int numLat = 0; 403 405 double sumLat = 0.; … … 582 584 // ------- 583 585 if (_latIntr>0) { 584 newSec = static_cast<int>(obs->_o.GPSWeeks); 585 if (newSec != oldSec) { 586 if (newSec % _latIntr < oldSec % _latIntr) { 586 newSecGPS = static_cast<int>(obs->_o.GPSWeeks); 587 newSecUTC = static_cast<int>(sec); 588 if (newSecGPS != oldSecGPS) { 589 if (newSecUTC % _latIntr < oldSecUTC % _latIntr) { 587 590 if (numLat>0) { 588 591 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4") … … 603 606 if (curLat >= maxLat) maxLat = curLat; 604 607 numLat += 1; 605 oldSec = newSec; 608 oldSecGPS = newSecGPS; 609 oldSecUTC = newSecUTC; 606 610 } 607 611 }
Note:
See TracChangeset
for help on using the changeset viewer.