]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Bugfixes of auto-restart functionality (statistics reset, StoreInfoStop).
authorhadaq <hadaq>
Sun, 1 Dec 2002 15:58:30 +0000 (15:58 +0000)
committerhadaq <hadaq>
Sun, 1 Dec 2002 15:58:30 +0000 (15:58 +0000)
BS

hadaq/evtbuild.c

index 66c542e434dd3772467d21f88d349d45ed2bc5da..5a6f38b92d00f855bcf833bf2a44e63137696dc7 100644 (file)
@@ -1,4 +1,4 @@
-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.58 2002-11-22 21:54:37 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.59 2002-12-01 15:58:30 hadaq Exp $";
 
 
 #define _POSIX_C_SOURCE 199309L
@@ -653,11 +653,23 @@ int main(int argc, char *argv[])
 
                        ourTime = time(NULL);
                        closeFile();
-                       storeInfoStop(argv[0], ourTime, worker);
+                       storeInfoStop(argv[0], ourTime - 2, worker);
 
                        (*theStats->bytesWritten) = 0;
+                       (*theStats->evtsComplete) = 0;
+                       (*theStats->evtsDiscarded) = 0;
+                       (*theStats->evtsDataError) = 0;
+                       (*theStats->evtsTagError) = 0;
+                       for (i = 0; i < theArgs->nrOfMsgs; i++) {
+                               (*theStats->trigNr[i]) = 0;
+                       }
                }
        }
+
+       ourTime = time(NULL);
+       closeFile();
+       storeInfoStop(argv[0], ourTime - 2, worker);
+
        statsDump(theArgs, theStats, 0);
 
        for (i = 0; i < theArgs->nrOfMsgs; i++) {