mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-08 19:10:42 +02:00
trying to fix packetloss print
This commit is contained in:
parent
0fddcd162d
commit
4fb26f833a
@ -1564,7 +1564,7 @@ int UDPStandardImplementation::createNewFile(int ithread){
|
|||||||
//Print packet loss and filenames
|
//Print packet loss and filenames
|
||||||
if(!totalWritingPacketCount[ithread]){
|
if(!totalWritingPacketCount[ithread]){
|
||||||
frameNumberInPreviousFile[ithread] = -1;
|
frameNumberInPreviousFile[ithread] = -1;
|
||||||
printf("\nThread:%d File:%s\n",ithread,completeFileName[ithread]);
|
printf("Thread:%d File:%s\n",ithread,completeFileName[ithread]);
|
||||||
}else{
|
}else{
|
||||||
if(frameNumberInPreviousFile[ithread] == -1)
|
if(frameNumberInPreviousFile[ithread] == -1)
|
||||||
frameNumberInPreviousFile[ithread] = startFrameIndex;
|
frameNumberInPreviousFile[ithread] = startFrameIndex;
|
||||||
@ -2816,6 +2816,7 @@ void UDPStandardImplementation::writeFileWithoutCompression(int ithread, char* w
|
|||||||
totalPacketsCaught += packetsWritten;
|
totalPacketsCaught += packetsWritten;
|
||||||
pthread_mutex_unlock(&writeMutex);
|
pthread_mutex_unlock(&writeMutex);
|
||||||
currentFrameNumber[ithread] += lastFrameNumberInFile[ithread];
|
currentFrameNumber[ithread] += lastFrameNumberInFile[ithread];
|
||||||
|
if(!ithread)cprintf(BLUE,"currentFrameNumber[ithread]:%d\n",currentFrameNumber[ithread]);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user