diff options
author | Jochen Dolze <vdr@dolze.de> | 2012-04-07 16:55:39 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2012-04-07 16:55:39 +0200 |
commit | 11d34a334a55b98950634be3612ed78eece8407d (patch) | |
tree | 48ec4082255ac2d87808e61db268e33240f9771f /setup.cpp | |
parent | 4d5bfc7c68db5776711b21fbcef70d02f22b5789 (diff) | |
download | vdr-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.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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) { |