mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 22:40:02 +02:00
progress bug
This commit is contained in:
parent
0cc89efb20
commit
6498b20612
@ -2881,11 +2881,10 @@ void UDPStandardImplementation::handleWithoutMissingPackets(int ithread, char* w
|
||||
uint64_t tempframenumber;
|
||||
tempframenumber = (*((uint32_t*)(wbuffer+HEADER_SIZE_NUM_TOT_PACKETS)));
|
||||
tempframenumber -= startFrameIndex;
|
||||
currentFrameNumber[ithread] = tempframenumber;
|
||||
//cout<<"handling: frame number:"<<tempframenumber<<endl;
|
||||
|
||||
if (cbAction < DO_EVERYTHING)
|
||||
rawDataReadyCallBack((int)currentFrameNumber[ithread], wbuffer+HEADER_SIZE_NUM_TOT_PACKETS, npackets * onePacketSize+JFRAU_FILE_FRAME_HEADER_LENGTH,
|
||||
rawDataReadyCallBack((int)tempframenumber, wbuffer+HEADER_SIZE_NUM_TOT_PACKETS, npackets * onePacketSize+JFRAU_FILE_FRAME_HEADER_LENGTH,
|
||||
sfilefd[ithread], latestData[ithread],pRawDataReady);//know which thread from sfilefd
|
||||
|
||||
|
||||
@ -2901,6 +2900,7 @@ void UDPStandardImplementation::handleWithoutMissingPackets(int ithread, char* w
|
||||
totalPacketsInFile[ithread] += npackets;
|
||||
totalWritingPacketCount[ithread] += npackets;
|
||||
lastFrameNumberInFile[ithread] = tempframenumber;
|
||||
currentFrameNumber[ithread] = tempframenumber;
|
||||
|
||||
if(numberofWriterThreads > 1)
|
||||
pthread_mutex_lock(&writeMutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user