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