From: hadaq Date: Tue, 17 Aug 2010 09:52:04 +0000 (+0000) Subject: max file size fixed. Sergey. X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=3d4cd1e723fe9c40c258c89a216b32fa3cb3c644;p=daqdata.git max file size fixed. Sergey. --- diff --git a/hadaq/evtbuild.c b/hadaq/evtbuild.c index 852cd1e..89c534c 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.127 2010-08-16 08:42:23 hadaq Exp $"; +static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.128 2010-08-17 09:52:04 hadaq Exp $"; #define _POSIX_C_SOURCE 199309L #define SYSLOG_NAMES @@ -470,7 +470,7 @@ static void argsDefault(TheArgs *my) my->bitMask = 0xf000000; my->bitShift = 24; - my->maxFileSz = (1.5 * 1024 * 1024 * 1024UL - 1); + my->maxFileSz = 1.5 * 1024 * 1024 * 1024UL; my->online = 0; /* 0=off, 1=on */ my->write_data = 0; my->resdownscale = 0; @@ -610,7 +610,7 @@ static int argsFromCL(TheArgs *my, int argc, char *argv[]) my->multiDisks = 1; break; case 'z': /* from MBytes to Bytes */ - my->maxFileSz = (strtoul(optarg, NULL, 0) * 1024 * 1024UL - 1); + my->maxFileSz = strtoul(optarg, NULL, 0) * 1024 * 1024UL; break; case 'e': /* need resnumevents & respath */ my->resdownscale = strtoul(optarg, NULL, 0);