]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
discarded evts for storeLogInfo fixed. Sergey.
authorhadaq <hadaq>
Mon, 16 Aug 2010 08:41:33 +0000 (08:41 +0000)
committerhadaq <hadaq>
Mon, 16 Aug 2010 08:41:33 +0000 (08:41 +0000)
hadaq/evtbuild.c

index 1a73a86cd5f0939574642298d014eb0c441e180d..9e20c2f1e3c23f4748357d937718890e16c53700 100644 (file)
@@ -1,4 +1,4 @@
-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.125 2010-08-04 09:16:09 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.126 2010-08-16 08:41:33 hadaq Exp $";
 
 #define _POSIX_C_SOURCE 199309L
 #define SYSLOG_NAMES
@@ -1245,7 +1245,7 @@ static void statsDump(TheArgs *theArgs, TheStats *my, int interval)
                                fputc('\n', stderr);
                        }
 
-                       if (*my->evtsDiscarded - lastED > 0) {
+                       if ((long) (*my->evtsDiscarded) - (long) lastED > 0) {
                                sprintf(msglog, "<W> discarded events: %d", *my->evtsDiscarded - lastED);
                                storeLogInfo(theArgs, msglog);
                        }