From b38d71b2980248cd395b7dd02fc80025ea37a1d5 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Tue, 25 Oct 2016 12:26:53 +0200 Subject: [PATCH] trying to fix packetloss print --- .../src/UDPStandardImplementation.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/slsReceiverSoftware/src/UDPStandardImplementation.cpp b/slsReceiverSoftware/src/UDPStandardImplementation.cpp index 4b24fe79e..714a1928f 100644 --- a/slsReceiverSoftware/src/UDPStandardImplementation.cpp +++ b/slsReceiverSoftware/src/UDPStandardImplementation.cpp @@ -1575,18 +1575,25 @@ int UDPStandardImplementation::createNewFile(int ithread){ if(frameNumberInPreviousFile[ithread] == -1) frameNumberInPreviousFile[ithread] = startFrameIndex; - cout + printf("\nThread %d\tFile:%s\n" + "\tPackets Lost:%d\tCurrentFrameNumber:%lld\tPreviousFrameNumber:%lld\n", + ithread,completeFileName[ithread], + ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousFile[ithread])*packetsPerFrame) - totalPacketsInFile[ithread]), + currentFrameNumber[ithread],frameNumberInPreviousFile[ithread]); + /* + cout << "\nThread " << ithread << "\tFile:" << completeFileName[ithread] <