trying to fix packetloss print

This commit is contained in:
Dhanya Maliakal 2016-10-25 13:31:11 +02:00
parent 4fb26f833a
commit 636d5840aa

View File

@ -1567,7 +1567,7 @@ int UDPStandardImplementation::createNewFile(int ithread){
printf("Thread:%d File:%s\n",ithread,completeFileName[ithread]);
}else{
if(frameNumberInPreviousFile[ithread] == -1)
frameNumberInPreviousFile[ithread] = startFrameIndex;
frameNumberInPreviousFile[ithread] = startFrameIndex -1;
printf("\nThread:%d File:%s\n"
"\ttotalpacketsinfile:%d\tPackets Lost:%d\tCurrentFrameNumber:%lld\tPreviousFrameNumber:%lld\n",
@ -2620,7 +2620,7 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){
if(totalWritingPacketCount[ithread]){
if(frameNumberInPreviousFile[ithread]==-1)
frameNumberInPreviousFile[ithread] = startFrameIndex;
frameNumberInPreviousFile[ithread] = startFrameIndex-1;
printf("\nThread:%d File:%s\n"
"\ttotalpacketsinfile:%d\tPackets Lost:%d\tCurrentFrameNumber:%lld\tPreviousFrameNumber:%lld\n",