Index: /branches/BNC_2.12/src/bncutils.cpp
===================================================================
--- /branches/BNC_2.12/src/bncutils.cpp	(revision 8668)
+++ /branches/BNC_2.12/src/bncutils.cpp	(revision 8669)
@@ -256,6 +256,6 @@
   currentGPSWeeks(week, sec);
   bncTime currTime(week, sec);
-
-  if (fabs(currTime - obsTime) > maxDt) {
+  if (((currTime - obsTime) < 0.0) ||
+      (fabs(currTime - obsTime) > maxDt)) {
     return true;
   }
Index: /branches/BNC_2.12/src/latencychecker.cpp
===================================================================
--- /branches/BNC_2.12/src/latencychecker.cpp	(revision 8668)
+++ /branches/BNC_2.12/src/latencychecker.cpp	(revision 8669)
@@ -321,5 +321,5 @@
 
   if (_miscIntr > 0 ) {
-    t_latency& l = _lObs; 
+    t_latency& l = _lObs;
     l._type =  "Observations";
     QListIterator<t_satObs> it(obsList);
@@ -327,8 +327,13 @@
       const t_satObs& obs = it.next();
       bool wrongObservationEpoch = checkForWrongObsEpoch(obs._time);
+      if (wrongObservationEpoch) {
+        emit( newMessage(QString("%1: Wrong observation epoch from %3 ")
+            .arg(_staID.data())
+            .arg(obs._prn.toString().data())
+            .toAscii(), true) );
+      }
       l._newSec = static_cast<int>(nint(obs._time.gpssec()*10));
       if (l._newSec > l._oldSec && !wrongObservationEpoch) {
         if (l._newSec % (_miscIntr * 10) < l._oldSec % (_miscIntr * 10)) {
- 
           if (l._numLat > 0) {
             if (l._meanDiff > 0.0) {
@@ -358,11 +363,11 @@
               }
             }
-          }
-          l._meanDiff  = l._diffSec / l._numLat;
-          l.init();
+            l._meanDiff  = l._diffSec / l._numLat;
+            l.init();
+          }
         }
         if (l._followSec) {
           l._diffSec += l._newSec - l._oldSec;
-          if (l._meanDiff>0.) {
+          if (l._meanDiff > 0.0) {
             if (l._newSec - l._oldSec > 1.5 * l._meanDiff) {
               l._numGaps += 1;
@@ -486,5 +491,5 @@
 
       // Compute the observations latency
-      // --------------------------------      
+      // --------------------------------
       int week;
       double sec;
