From: hadaq Date: Sun, 1 Dec 2002 15:58:30 +0000 (+0000) Subject: Bugfixes of auto-restart functionality (statistics reset, StoreInfoStop). X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=8dd12ff53352f507a376b2e5e790bdf139aa1f54;p=daqdata.git Bugfixes of auto-restart functionality (statistics reset, StoreInfoStop). BS --- diff --git a/hadaq/evtbuild.c b/hadaq/evtbuild.c index 66c542e..5a6f38b 100644 --- a/hadaq/evtbuild.c +++ b/hadaq/evtbuild.c @@ -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++) {