]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
max file size fixed. Sergey.
authorhadaq <hadaq>
Tue, 17 Aug 2010 09:52:04 +0000 (09:52 +0000)
committerhadaq <hadaq>
Tue, 17 Aug 2010 09:52:04 +0000 (09:52 +0000)
hadaq/evtbuild.c

index 852cd1eb4ae23dd6fc7fdc988debf1a9701b7c54..89c534c1429e85068965b13e9963ae95323509ad 100644 (file)
@@ -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);