Index: trunk/Mars/fact/processing/numevents.C
===================================================================
--- trunk/Mars/fact/processing/numevents.C	(revision 18677)
+++ trunk/Mars/fact/processing/numevents.C	(revision 18688)
@@ -241,4 +241,5 @@
     TString star_fname;
     Int_t rc=0;
+    Int_t numpb=0;
 
     //loop over the data files
@@ -280,10 +281,14 @@
         rc=process(serv, ganymed_fname, star_fname, night2, runid, table, pernight, source);
         if (rc>1)
-            return rc;
-
-    }
-
-
-    return 1;
+            numpb++;
+            //return rc;
+
+    }
+
+
+    if (numpb>0)
+        return numpb+1;//avoid that 1 (i.e. everything ok) is returned in case of problems
+    else
+        return 1;
 }
 
