From 0a828794745069f0b978ab001b92b9ef31f5195f Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Fri, 13 Feb 2009 07:13:42 +0100 Subject: Improved status, added missing packet count Changed channel switching code --- global.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'global.cpp') diff --git a/global.cpp b/global.cpp index ec663d4..31311ac 100644 --- a/global.cpp +++ b/global.cpp @@ -29,6 +29,8 @@ void cGlobalInfosatdata::Init(char *File,int Day,int Month,int Packetcount) } Processed=false; receivedall=false; + missed=0; + lastpkt=-1; receivedpercent=0; day=Day; month=Month; @@ -103,6 +105,15 @@ void cGlobalInfosatdata::Debug(const char *Directory) } #endif +void cGlobalInfosatdata::CheckMissed(int ActualPacket) +{ + if (receivedall) return; // count missed packets while receiving + if ((ActualPacket!=(lastpkt+1)) && (lastpkt!=-1)) { + missed++; + } + lastpkt=ActualPacket; +} + bool cGlobalInfosatdata::CheckReceivedAll() { int donecnt=0; @@ -149,6 +160,7 @@ cGlobalInfosatepg::cGlobalInfosatepg() ProcessedAll=false; NoWakeup=false; NoDeferredShutdown=false; + ActualMac=0; } cGlobalInfosatepg::~cGlobalInfosatepg() @@ -351,6 +363,7 @@ void cGlobalInfosatepg::ResetReceivedAll(void) Infosatdata[mac].ResetReceivedAll(); } wakeuptime=-1; + ProcessedAll=false; } void cGlobalInfosatepg::ResetProcessed (void) -- cgit v1.2.3