summaryrefslogtreecommitdiff
path: root/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'process.cpp')
-rw-r--r--process.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/process.cpp b/process.cpp
index f835353..7969136 100644
--- a/process.cpp
+++ b/process.cpp
@@ -636,7 +636,17 @@ void cProcessInfosatepg::Action()
time_t firststarttime=-1;
if (ParseInfosatepg(f,&firststarttime))
{
- global->SetWakeupTime(firststarttime);
+ if (firststarttime>time(NULL))
+ {
+ global->SetWakeupTime(firststarttime);
+ }
+ else
+ {
+ isyslog("infosatepg: wakeuptime from infosat is in the past");
+ firststarttime=cTimer::SetTime(time(NULL),cTimer::TimeToInt(300));
+ firststarttime+=79200; // add 20 hours
+ global->SetWakeupTime(firststarttime);
+ }
global->Infosatdata[mac].Processed=true;
}
else