Index: trunk/BNC/bncgetthread.cpp
===================================================================
--- trunk/BNC/bncgetthread.cpp	(revision 716)
+++ trunk/BNC/bncgetthread.cpp	(revision 717)
@@ -398,6 +398,8 @@
   bool begCorrupt = false;
   bool endCorrupt = false;
-  int oldSec= 0;
-  int newSec = 0;
+  int oldSecGPS= 0;
+  int newSecGPS = 0;
+  int oldSecUTC= 0;
+  int newSecUTC = 0;
   int numLat = 0;
   double sumLat = 0.;
@@ -582,7 +584,8 @@
             // -------
             if (_latIntr>0) {
-              newSec = static_cast<int>(obs->_o.GPSWeeks);
-              if (newSec != oldSec) {
-                if (newSec % _latIntr < oldSec % _latIntr) {
+              newSecGPS = static_cast<int>(obs->_o.GPSWeeks);
+              newSecUTC = static_cast<int>(sec);
+              if (newSecGPS != oldSecGPS) {
+                if (newSecUTC % _latIntr < oldSecUTC % _latIntr) {
                   if (numLat>0) {
                     emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4")
@@ -603,5 +606,6 @@
                 if (curLat >= maxLat) maxLat = curLat;
                 numLat += 1;
-                oldSec = newSec;
+                oldSecGPS = newSecGPS;
+                oldSecUTC = newSecUTC;
               }
             }
