From f112fa43ccc26df8dbc94cee2726f62b5daf2c61 Mon Sep 17 00:00:00 2001 From: hadaq Date: Mon, 16 Aug 2010 08:41:33 +0000 Subject: [PATCH] discarded evts for storeLogInfo fixed. Sergey. --- hadaq/evtbuild.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadaq/evtbuild.c b/hadaq/evtbuild.c index 1a73a86..9e20c2f 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.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, " discarded events: %d", *my->evtsDiscarded - lastED); storeLogInfo(theArgs, msglog); } -- 2.43.0