Changeset 717 in ntrip


Ignore:
Timestamp:
Mar 10, 2008, 12:19:00 PM (16 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r716 r717  
    398398  bool begCorrupt = false;
    399399  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;
    402404  int numLat = 0;
    403405  double sumLat = 0.;
     
    582584            // -------
    583585            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) {
    587590                  if (numLat>0) {
    588591                    emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4")
     
    603606                if (curLat >= maxLat) maxLat = curLat;
    604607                numLat += 1;
    605                 oldSec = newSec;
     608                oldSecGPS = newSecGPS;
     609                oldSecUTC = newSecUTC;
    606610              }
    607611            }
Note: See TracChangeset for help on using the changeset viewer.