Index: trunk/Mars/fact/processing/magicweather.C
===================================================================
--- trunk/Mars/fact/processing/magicweather.C	(revision 18945)
+++ trunk/Mars/fact/processing/magicweather.C	(revision 18946)
@@ -17,5 +17,4 @@
 
     UInt_t offset = file.GetUInt("MJDREF");
-    //cout << "offset: " << offset << endl;
     if (beg < 30000)
         beg+=offset;
@@ -49,5 +48,4 @@
     {
         time += offset;
-        //cout << time << " " << temp << endl;
 
         if  (time>end)
@@ -96,8 +94,9 @@
     if (cnt==0)
     {
-        if (diff>5./24/3600)
+        //only give output if values within 45 sec before/after are available
+        // weather reports come every ~30 sec
+        if (diff<0 || diff>45./24/3600)
             return;
 
-        //only give output if values within 5 min before/after are available
         cout << "result " << last_t << " 0 "  << last_h << " 0 "
             << last_p << " 0 "  << last_d << " 0 "
