mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
debugging
This commit is contained in:
parent
b8ffe24c5f
commit
6a2adb48aa
@ -2748,7 +2748,19 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){
|
||||
|
||||
//Print packet loss
|
||||
if(totalWritingPacketCountFromLastCheck[ithread]){
|
||||
thread/****/
|
||||
if(numberofWriterThreads>1){
|
||||
printf("\nThread:%d"
|
||||
"\tPackets Lost:%d"
|
||||
"\tPacketsFromLastCheck:%lld"
|
||||
"\tCurrentFrameNumber:%lld"
|
||||
"\tPreviousFrameNumber:%lld\n",
|
||||
ithread,
|
||||
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
|
||||
totalWritingPacketCountFromLastCheck[ithread],
|
||||
currentFrameNumber[ithread],
|
||||
frameNumberInPreviousCheck[ithread]
|
||||
);
|
||||
}else{
|
||||
printf("\nPackets Lost:%d"
|
||||
"\tPacketsFromLastCheck:%lld"
|
||||
"\tCurrentFrameNumber:%lld"
|
||||
@ -2759,6 +2771,7 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){
|
||||
frameNumberInPreviousCheck[ithread]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
closeFile(ithread);
|
||||
pthread_mutex_lock(&statusMutex);
|
||||
@ -2916,12 +2929,10 @@ void UDPStandardImplementation::handleWithoutMissingPackets(int ithread, char* w
|
||||
|
||||
//Print packet loss and filenames
|
||||
if(tempframenumber && (tempframenumber%(maxFramesPerFile/10)) == 0){
|
||||
cprintf(BLUE,"\nThread:%d"
|
||||
"\t\tPackets Lost:%d"
|
||||
cprintf(BLUE,"\nPackets Lost:%d"
|
||||
"\tPacketsFromLastCheck:%lld"
|
||||
"\tCurrentFrameNumber:%lld"
|
||||
"\tPreviousFrameNumber:%lld\n",
|
||||
ithread,
|
||||
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
|
||||
totalWritingPacketCountFromLastCheck[ithread],
|
||||
currentFrameNumber[ithread],
|
||||
|
Loading…
x
Reference in New Issue
Block a user