setting buffer for fwrite in slsreceiver

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@636 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d 2013-07-19 09:15:41 +00:00
parent 34af5c9be0
commit 7a40b12108
3 changed files with 4 additions and 1 deletions

View File

@ -2799,7 +2799,6 @@ slsDetectorDefs::detectorSettings slsDetector::setSettings( detectorSettings ise
int modmi=imod, modma=imod+1, im=imod;
string settingsfname, calfname;
string ssettings;
int ichip,ichan,nch;
switch (isettings) {
case STANDARD:

View File

@ -11,6 +11,7 @@
#define CREATE_FILES 1
#define DO_EVERYTHING 2
#define BUF_SIZE 16000000 //16mb
//all max frames defined in sls_detector_defs.h. 20000 gotthard, 100000 for short gotthard, 1000 for moench

View File

@ -491,6 +491,9 @@ int slsReceiverFunctionList::startWriting(){
break;
}
//setting buffer
setvbuf(sfilefd,NULL,_IOFBF,BUF_SIZE);
//printing packet losses and file names
//if(prevframenum != 0)
if(!framesCaught)