Changeset 724 in ntrip for trunk/BNC/bncgetthread.cpp


Ignore:
Timestamp:
Mar 11, 2008, 1:40:23 PM (16 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r723 r724  
    402402  int oldSecGPS= 0;
    403403  int newSecGPS = 0;
    404   int oldSecUTC= 0;
    405   int newSecUTC = 0;
    406404  int numLat = 0;
    407405  double sumLat = 0.;
     
    588586              newSecGPS = static_cast<int>(obs->_o.GPSWeeks);
    589587              if (newSecGPS != oldSecGPS) {
    590                 newSecUTC = static_cast<int>(sec);
    591                 if (newSecUTC % _latIntr < oldSecUTC % _latIntr) {
     588                if (newSecGPS % _latIntr < oldSecGPS % _latIntr) {
    592589                  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")
    594591                      .arg(_staID.data())
    595592                      .arg(int(sumLat/numLat*100)/100.)
    596593                      .arg(int(minLat*100)/100.)
    597594                      .arg(int(maxLat*100)/100.)
     595                      .arg(numLat)
    598596                      .toAscii()) );
    599597                  }
     
    609607                numLat += 1;
    610608                oldSecGPS = newSecGPS;
    611                 oldSecUTC = newSecUTC;
    612609              }
    613610            }
Note: See TracChangeset for help on using the changeset viewer.