Index: /trunk/BNC/bncgetthread.cpp
===================================================================
--- /trunk/BNC/bncgetthread.cpp	(revision 709)
+++ /trunk/BNC/bncgetthread.cpp	(revision 710)
@@ -406,4 +406,6 @@
   double curLat = 0.;
   double leapsec = 14.;  // Leap second for latency estimation
+  int week;
+  double sec;
 
   _decodeTime = QDateTime::currentDateTime();
@@ -447,4 +449,5 @@
         char* data = new char[nBytes];
         _socket->read(data, nBytes);
+        currentGPSWeeks(week, sec);
 
       if (_inspSegm<1) {
@@ -554,8 +557,4 @@
           // Check observation epoch
           // -----------------------
-          int    week;
-          double sec;
-          currentGPSWeeks(week, sec);
-          
           const double secPerWeek = 7.0 * 24.0 * 3600.0;
 
@@ -600,4 +599,5 @@
                 }
                 curLat = sec - obs->_o.GPSWeeks + leapsec;
+                printf("curLat %f\n",curLat);
                 sumLat += curLat;
                 if (curLat < minLat) minLat = curLat;
