mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-27 00:30:03 +02:00
debugging
This commit is contained in:
parent
f6b753f5d7
commit
4a96b90296
@ -1586,13 +1586,30 @@ int UDPStandardImplementation::createNewFile(int ithread){
|
|||||||
|
|
||||||
//Print packet loss and filenames
|
//Print packet loss and filenames
|
||||||
if(totalWritingPacketCount[ithread]){
|
if(totalWritingPacketCount[ithread]){
|
||||||
cprintf(BLUE,"\nThread:%d File:%s\n"
|
if(numberofWriterThreads>1){
|
||||||
"Packets Lost:%d"
|
cprintf(BLUE,"\nThread:%d File:%s"
|
||||||
"\t\tPacketsInFile:%lld\tCurrentFrameNumber:%lld\tPreviousFrameNumber:%lld\n",
|
"\nLost:%d"
|
||||||
ithread,completeFileName[ithread],
|
"\tPackets:%lld"
|
||||||
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousFile[ithread])*packetsPerFrame) - totalPacketsInFile[ithread]),
|
"\tFrame#:%lld"
|
||||||
totalPacketsInFile[ithread],currentFrameNumber[ithread],frameNumberInPreviousFile[ithread]
|
"\tPFrame#:%lld\n",
|
||||||
);
|
ithread,completeFileName[ithread],
|
||||||
|
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousFile[ithread])*packetsPerFrame) - totalPacketsInFile[ithread]),
|
||||||
|
totalPacketsInFile[ithread],currentFrameNumber[ithread],frameNumberInPreviousFile[ithread]
|
||||||
|
);
|
||||||
|
}else{
|
||||||
|
cprintf(BLUE,"\nFile:%s"
|
||||||
|
"\nLost:%d"
|
||||||
|
"\tPackets:%lld"
|
||||||
|
"\tFrame#:%lld"
|
||||||
|
"\tPFrame#:%lld\n",
|
||||||
|
completeFileName[ithread],
|
||||||
|
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousFile[ithread])*packetsPerFrame) - totalPacketsInFile[ithread]),
|
||||||
|
totalPacketsInFile[ithread],
|
||||||
|
currentFrameNumber[ithread],
|
||||||
|
frameNumberInPreviousFile[ithread]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//write file header
|
//write file header
|
||||||
|
Loading…
x
Reference in New Issue
Block a user