From: Jörg Dembski Date: Thu, 13 Jan 2011 08:40:04 +0000 (+0100) Subject: Add extra start / stop time information to status.xml page (redmine ticket #351) X-Git-Tag: 2.99~78^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeb20b9b1ca33be1c74506afd87df85817c8628f;p=thirdparty%2Ftvheadend.git Add extra start / stop time information to status.xml page (redmine ticket #351) --- diff --git a/src/webui/simpleui.c b/src/webui/simpleui.c index 197825af8..1c791092c 100644 --- a/src/webui/simpleui.c +++ b/src/webui/simpleui.c @@ -383,7 +383,7 @@ page_status(http_connection_t *hc, if (DVR_SCHEDULED == de->de_sched_state) { - timelefttemp = (int) (de->de_start - now) / 60; // output minutes + timelefttemp = (int) ((de->de_start - now) / 60) - de->de_start_extra; // output minutes if (timelefttemp < timeleft) timeleft = timelefttemp; } @@ -398,19 +398,23 @@ page_status(http_connection_t *hc, "%02d/%02d/%02d" "" "%d" + "%d" "" "" "%02d/%02d/%02d" "" "%d" + "%d" "" "%s", a.tm_year + 1900, a.tm_mon, a.tm_mday, a.tm_hour, a.tm_min, de->de_start, + de->de_start_extra, b.tm_year+1900, b.tm_mon, b.tm_mday, b.tm_hour, b.tm_min, de->de_stop, + de->de_stop_extra, de->de_title); rstatus = val2str(de->de_sched_state, recstatustxt);