From 5c5e2edbf96d814d5740d441e73399aee8729260 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Thu, 29 Oct 2015 17:45:24 +0100 Subject: [PATCH] done --- slsReceiverSoftware/src/UDPStandardImplementation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsReceiverSoftware/src/UDPStandardImplementation.cpp b/slsReceiverSoftware/src/UDPStandardImplementation.cpp index fffb38e87..fee4a16c0 100644 --- a/slsReceiverSoftware/src/UDPStandardImplementation.cpp +++ b/slsReceiverSoftware/src/UDPStandardImplementation.cpp @@ -2281,10 +2281,10 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer[]){ //statistics cprintf(GREEN, "Status: Run Finished\n"); - if((long long int)(totalPacketsCaught/packetsPerFrame) == 0){ + if(numTotMissingPackets){ cprintf(RED, "Total Missing Packets padded: %d\n",numTotMissingPackets); cprintf(RED, "Total Packets Caught: %lld\n",(long long int)totalPacketsCaught); - cprintf(RED, "Total Frames Caught: 0\n"); + cprintf(RED, "Total Frames Caught: %lld\n",(long long int)(totalPacketsCaught/packetsPerFrame)); }else{ cprintf(GREEN, "Total Missing Packets padded: %d\n",numTotMissingPackets); cprintf(GREEN, "Total Packets Caught:%lld\n", (long long int)totalPacketsCaught);