diff options
author | Jochen Dolze <vdr@dolze.de> | 2009-12-31 13:58:31 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2009-12-31 13:58:31 +0100 |
commit | 5ee5ae9b1e601d077ab2bf4d9adc27e00f3ab693 (patch) | |
tree | 28d128d3befb6ce8865f509c09836119f8471f15 /process.cpp | |
parent | 162a02363126cd4f23b561264dcf0776b3e5fd1c (diff) | |
download | vdr-plugin-infosatepg-5ee5ae9b1e601d077ab2bf4d9adc27e00f3ab693.tar.gz vdr-plugin-infosatepg-5ee5ae9b1e601d077ab2bf4d9adc27e00f3ab693.tar.bz2 |
Changed wakeup and reset of received datav0.0.10
Diffstat (limited to 'process.cpp')
-rw-r--r-- | process.cpp | 12 |
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 |