]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Discarded evt rate fixed. Sergey.
authorhadaq <hadaq>
Wed, 29 Sep 2010 14:53:31 +0000 (14:53 +0000)
committerhadaq <hadaq>
Wed, 29 Sep 2010 14:53:31 +0000 (14:53 +0000)
ebctrl/ioc/ebctrlApp/src/evtbuild.c

index fdc9b90754c226bff4de4d556295d5ccf37d9ff0..438bf730be8e8d0205f771628e7b934198801955 100644 (file)
@@ -80,8 +80,8 @@ long evtbuild_proc( struct genSubRecord *pgsub )
     *out[0] = (uint32_t)tmp;   /* nrOfMsgs */
     *out[7] = 1;   /* status: Event Builder is on */
     if(evtbuildDebug) {
-      printf("<E> evtbuild.c: Worker_getStatistic::nrOfMsgs = %lu\n", tmp);
-      printf("<E> evtbuild.c: status = %lu\n", (unsigned long)1);
+      printf("<I> evtbuild.c: Worker_getStatistic::nrOfMsgs = %lu\n", tmp);
+      printf("<I> evtbuild.c: status = %lu\n", (unsigned long)1);
     }
   }
 
@@ -141,7 +141,7 @@ long evtbuild_proc( struct genSubRecord *pgsub )
   else {
     *out[3] = (uint32_t)tmp;
 
-    if( ((long)(*out[3]) - (long)temp[3]) > 0 )
+    if( ((long)(*out[3]) - (long)temp[3]) >= 0 )
       *out[10] = (long)(*out[3]) - (long)temp[3]; /* calculate evtDisc rate */
     else
       *out[10] = *out[3];