summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-04-07 16:55:39 +0200
committerJochen Dolze <vdr@dolze.de>2012-04-07 16:55:39 +0200
commit11d34a334a55b98950634be3612ed78eece8407d (patch)
tree48ec4082255ac2d87808e61db268e33240f9771f /setup.cpp
parent4d5bfc7c68db5776711b21fbcef70d02f22b5789 (diff)
downloadvdr-plugin-xmltv2vdr-11d34a334a55b98950634be3612ed78eece8407d.tar.gz
vdr-plugin-xmltv2vdr-11d34a334a55b98950634be3612ed78eece8407d.tar.bz2
Fixed execution check
Cosmetics and more (debug) output
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/setup.cpp b/setup.cpp
index 6c2b6db..5ebc6f2 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -515,23 +515,23 @@ void cMenuSetupXmltv2vdrLog::output(void)
int cur=Current();
Clear();
Add(NewTitle(tr("overview")));
- time_t lastexec=src->LastExecution();
- if (lastexec)
+ time_t nextrun=src->NextRunTime();
+ if (nextrun)
{
struct tm tm;
- localtime_r(&lastexec,&tm);
- strftime(lastexec_str,sizeof(lastexec_str)-1,"%d %b %H:%M:%S",&tm);
+ localtime_r(&nextrun,&tm);
+ strftime(nextrun_str,sizeof(nextrun_str)-1,"%d %b %H:%M:%S",&tm);
}
cString last;
if (src->Active())
{
- last=cString::sprintf("%s:\t%s",tr("last execution"),
+ last=cString::sprintf("%s:\t%s",tr("next execution"),
tr("active"));
}
else
{
- last=cString::sprintf("%s:\t%s",tr("last execution"),
- lastexec ? lastexec_str : "-");
+ last=cString::sprintf("%s:\t%s",tr("next execution"),
+ nextrun ? nextrun_str : "-");
}
Add(new cOsdItem(last,osUnknown,true));
@@ -616,6 +616,8 @@ cMenuSetupXmltv2vdrLog::cMenuSetupXmltv2vdrLog(cPluginXmltv2vdr *Plugin, cEPGSou
width=0;
lastrefresh=(time_t) 0;
font=NULL;
+ nextrun_str[0]=0;
+
cSkinDisplayMenu *disp=DisplayMenu();
if (disp)
{