From 11d34a334a55b98950634be3612ed78eece8407d Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sat, 7 Apr 2012 16:55:39 +0200 Subject: Fixed execution check Cosmetics and more (debug) output --- setup.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'setup.cpp') 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) { -- cgit v1.2.3