Changeset 724 in ntrip for trunk/BNC/bncgetthread.cpp
- Timestamp:
- Mar 11, 2008, 1:40:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r723 r724 402 402 int oldSecGPS= 0; 403 403 int newSecGPS = 0; 404 int oldSecUTC= 0;405 int newSecUTC = 0;406 404 int numLat = 0; 407 405 double sumLat = 0.; … … 588 586 newSecGPS = static_cast<int>(obs->_o.GPSWeeks); 589 587 if (newSecGPS != oldSecGPS) { 590 newSecUTC = static_cast<int>(sec); 591 if (newSecUTC % _latIntr < oldSecUTC % _latIntr) { 588 if (newSecGPS % _latIntr < oldSecGPS % _latIntr) { 592 589 if (numLat>0) { 593 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4 ")590 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4, %5 epochs") 594 591 .arg(_staID.data()) 595 592 .arg(int(sumLat/numLat*100)/100.) 596 593 .arg(int(minLat*100)/100.) 597 594 .arg(int(maxLat*100)/100.) 595 .arg(numLat) 598 596 .toAscii()) ); 599 597 } … … 609 607 numLat += 1; 610 608 oldSecGPS = newSecGPS; 611 oldSecUTC = newSecUTC;612 609 } 613 610 }
Note:
See TracChangeset
for help on using the changeset viewer.