[mythtv] [patch] Display myth version on "System Status" page
Dave Alden
alden at math.ohio-state.edu
Sat Dec 13 20:27:48 EST 2003
Hi,
I thought it'd be nice to be able to find out what version I'm running
from within mythfrontend. Enclosed is a small patch that adds the version
number to the "System Status" page.
...dave
-------------- next part --------------
Index: programs/mythfrontend/main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/main.cpp,v
retrieving revision 1.119
diff -u -r1.119 main.cpp
--- programs/mythfrontend/main.cpp 13 Dec 2003 23:35:18 -0000 1.119
+++ programs/mythfrontend/main.cpp 14 Dec 2003 01:25:33 -0000
@@ -227,7 +227,10 @@
mfdLastRunEnd = gContext->GetSetting("mythfilldatabaseLastRunEnd");
mfdLastRunStatus = gContext->GetSetting("mythfilldatabaseLastRunStatus");
- Status = "Last mythfilldatabase guide update:";
+ Status = "Myth version: ";
+ Status += MYTH_BINARY_VERSION;
+
+ Status += "\n\nLast mythfilldatabase guide update:";
Status += "\n Started: ";
Status += mfdLastRunStart;
if (mfdLastRunEnd > mfdLastRunStart) //if end < start, it's still running.
More information about the mythtv-dev
mailing list