progress bug

This commit is contained in:
Dhanya Maliakal 2016-11-03 13:51:03 +01:00
parent 0cc89efb20
commit 6498b20612

View File

@ -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);