debugging progresS

This commit is contained in:
Dhanya Maliakal
2016-11-08 14:12:19 +01:00
parent 54658040dc
commit 38857d6845

View File

@ -1588,14 +1588,11 @@ int UDPStandardImplementation::createNewFile(int ithread){
}else{ }else{
printf("\nThread:%d File:%s\n" printf("\nThread:%d File:%s\n"
//"\ttotalpacketsinfile:%d\t"
"Packets Lost:%d" "Packets Lost:%d"
"\tCurrentFrameNumber:%lld\tPreviousFrameNumber:%lld" "\t\tTotalpacketsinfile:%lld\tCurrentFrameNumber:%lld\tPreviousFrameNumber:%lld\n",
"\n",
ithread,completeFileName[ithread], ithread,completeFileName[ithread],
//totalPacketsInFile[ithread], ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousFile[ithread])*packetsPerFrame) - totalPacketsInFile[ithread]),
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousFile[ithread])*packetsPerFrame) - totalPacketsInFile[ithread]) totalPacketsInFile[ithread],currentFrameNumber[ithread],frameNumberInPreviousFile[ithread]
,currentFrameNumber[ithread],frameNumberInPreviousFile[ithread]
); );
} }
@ -2742,16 +2739,12 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){
} }
if(totalWritingPacketCount[ithread]){ if(totalWritingPacketCount[ithread]){
printf("\nThread:%d File:%s\n" printf("\nThread:%d File:%s\n"
//"\ttotalpacketsinfile:%d\t"
"Packets Lost:%d" "Packets Lost:%d"
//"\tCurrentFrameNumber:%lld\tPreviousFrameNumber:%lld" "\t\tTotalpacketsinfile:%lld\tCurrentFrameNumber:%lld\tPreviousFrameNumber:%lld\n",
"\n",
ithread,completeFileName[ithread], ithread,completeFileName[ithread],
//totalPacketsInFile[ithread], ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousFile[ithread])*packetsPerFrame) - totalPacketsInFile[ithread]),
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousFile[ithread])*packetsPerFrame) - totalPacketsInFile[ithread]) totalPacketsInFile[ithread],currentFrameNumber[ithread],frameNumberInPreviousFile[ithread]
//,currentFrameNumber[ithread],frameNumberInPreviousFile[ithread]
); );
} }
closeFile(ithread); closeFile(ithread);