diff --git a/mythtv/programs/mythbackend/httpstatus.cpp b/mythtv/programs/mythbackend/httpstatus.cpp index 8571a58..be0272f 100644 --- a/mythtv/programs/mythbackend/httpstatus.cpp +++ b/mythtv/programs/mythbackend/httpstatus.cpp @@ -1392,13 +1392,17 @@ int HttpStatus::PrintMachineInfo( QTextStream &os, QDomElement info ) QString sStatus = e.attribute( "status" , "" ); QDateTime next = MythDate::fromString( e.attribute( "next" , "" )); QString sNext = next.isNull() ? "" : - MythDate::toString(next, MythDate::kDatabase); + MythDate::toString(next, MythDate::kDateTimeFull); QString sMsg = ""; QDateTime thru = MythDate::fromString( e.attribute( "guideThru", "" )); QDomText text = e.firstChild().toText(); + QString mfdblrs = + gCoreContext->GetSetting("mythfilldatabaseLastRunStart"); + QDateTime lastrunstart = MythDate::fromString(mfdblrs); + if (!text.isNull()) sMsg = text.nodeValue(); @@ -1412,7 +1416,7 @@ int HttpStatus::PrintMachineInfo( QTextStream &os, QDomElement info ) os << sStatus << "
\r\n"; - if (!next.isNull() && sNext >= sStart) + if (!next.isNull() && next >= lastrunstart) { os << " Suggested next mythfilldatabase run: " << sNext << ".
\r\n";