debugging

This commit is contained in:
Dhanya Maliakal 2016-11-09 09:19:11 +01:00
parent b8ffe24c5f
commit 6a2adb48aa

View File

@ -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],