From: hadaq Date: Thu, 28 Oct 2010 17:27:25 +0000 (+0000) Subject: Set to zero errbit stat at the end of file. Sergey. X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=1bcce595c7a85cefb28a5b89b8ddf6b3b9cdf1f7;p=daqdata.git Set to zero errbit stat at the end of file. Sergey. --- diff --git a/hadaq/evtbuild.c b/hadaq/evtbuild.c index e7fad62..438375d 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.141 2010-10-28 17:19:37 hadaq Exp $"; +static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.142 2010-10-28 17:27:25 hadaq Exp $"; #define _POSIX_C_SOURCE 199309L #define SYSLOG_NAMES @@ -1365,6 +1365,16 @@ int main(int argc, char *argv[]) for (i = 0; i < NEVTIDS; i++) (*theStats->evtId[i]) = 0; + for (i = 0; i < ERRBITPTRNMAX; i++) + (*theStats->errBitPtrn[i]) = 0; + + for (i = 0; i < theArgs->nrOfMsgs; i++) { + (*theStats->errBitStat0[i]) = 0; + (*theStats->errBitStat1[i]) = 0; + (*theStats->errBitStat2[i]) = 0; + (*theStats->errBitStat3[i]) = 0; + (*theStats->errBitStat4[i]) = 0; + } } if (theArgs->resdownscale) {