mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-15 00:42:12 +02:00
debugging
This commit is contained in:
parent
7cbd21651b
commit
f6b753f5d7
@ -2749,11 +2749,11 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){
|
|||||||
//Print packet loss
|
//Print packet loss
|
||||||
if(totalWritingPacketCountFromLastCheck[ithread]){
|
if(totalWritingPacketCountFromLastCheck[ithread]){
|
||||||
if(numberofWriterThreads>1){
|
if(numberofWriterThreads>1){
|
||||||
printf("\nThread:%d"
|
printf("Thread:%d"
|
||||||
"\tPackets Lost:%d"
|
"\tLost:%d"
|
||||||
"\tPacketsFromLastCheck:%lld"
|
"\tPackets:%lld"
|
||||||
"\tCurrentFrameNumber:%lld"
|
"\tFrame#:%lld"
|
||||||
"\tPreviousFrameNumber:%lld\n",
|
"\tPFrame#r:%lld\n",
|
||||||
ithread,
|
ithread,
|
||||||
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
|
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
|
||||||
totalWritingPacketCountFromLastCheck[ithread],
|
totalWritingPacketCountFromLastCheck[ithread],
|
||||||
@ -2761,10 +2761,10 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){
|
|||||||
frameNumberInPreviousCheck[ithread]
|
frameNumberInPreviousCheck[ithread]
|
||||||
);
|
);
|
||||||
}else{
|
}else{
|
||||||
printf("\nPackets Lost:%d"
|
printf("Lost:%d"
|
||||||
"\tPacketsFromLastCheck:%lld"
|
"\tPackets:%lld"
|
||||||
"\tCurrentFrameNumber:%lld"
|
"\tFrame#:%lld"
|
||||||
"\tPreviousFrameNumber:%lld\n",
|
"\tPFrame#:%lld\n",
|
||||||
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
|
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
|
||||||
totalWritingPacketCountFromLastCheck[ithread],
|
totalWritingPacketCountFromLastCheck[ithread],
|
||||||
currentFrameNumber[ithread],
|
currentFrameNumber[ithread],
|
||||||
@ -2929,10 +2929,10 @@ void UDPStandardImplementation::handleWithoutMissingPackets(int ithread, char* w
|
|||||||
|
|
||||||
//Print packet loss and filenames
|
//Print packet loss and filenames
|
||||||
if(tempframenumber && (tempframenumber%(maxFramesPerFile/10)) == 0){
|
if(tempframenumber && (tempframenumber%(maxFramesPerFile/10)) == 0){
|
||||||
printf("\nPackets Lost:%d"
|
printf("Lost:%d"
|
||||||
"\tPacketsFromLastCheck:%lld"
|
"\tPackets:%lld"
|
||||||
"\tCurrentFrameNumber:%lld"
|
"\tFrame#:%lld"
|
||||||
"\tPreviousFrameNumber:%lld\n",
|
"\tPFrame#:%lld\n",
|
||||||
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
|
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
|
||||||
totalWritingPacketCountFromLastCheck[ithread],
|
totalWritingPacketCountFromLastCheck[ithread],
|
||||||
currentFrameNumber[ithread],
|
currentFrameNumber[ithread],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user