]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Set to zero errbit stat at the end of file. Sergey.
authorhadaq <hadaq>
Thu, 28 Oct 2010 17:27:25 +0000 (17:27 +0000)
committerhadaq <hadaq>
Thu, 28 Oct 2010 17:27:25 +0000 (17:27 +0000)
hadaq/evtbuild.c

index e7fad622c03f805f536148e5b278b6fa5b3e5abf..438375d2f793aaf567c729efdddab0c233033141 100644 (file)
@@ -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) {