diff options
author | thlo <smarttv640@gmail.com> | 2014-03-16 12:01:49 +0100 |
---|---|---|
committer | thlo <smarttv640@gmail.com> | 2014-03-16 12:01:49 +0100 |
commit | 3126abe9ac3e3ad4e5c7992cbb9feda911657039 (patch) | |
tree | 2f0c5b2a7bb8c3280d437be41e0f56892f3ba2f7 | |
parent | f804c01420eb0aeca30bfe4178e712ba6528d15c (diff) | |
download | vdr-plugin-smarttvweb-3126abe9ac3e3ad4e5c7992cbb9feda911657039.tar.gz vdr-plugin-smarttvweb-3126abe9ac3e3ad4e5c7992cbb9feda911657039.tar.bz2 |
vdrUtcTime added to vdrStatus.xml.
-rwxr-xr-x | responsememblk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/responsememblk.c b/responsememblk.c index e847f38..225c23b 100755 --- a/responsememblk.c +++ b/responsememblk.c @@ -1876,10 +1876,13 @@ int cResponseMemBlk::sendVdrStatusXml (struct stat *statbuf) { *mResponseMessage += "<vdrstatus>\n"; now = time(NULL); + snprintf(f, sizeof(f), "<vdrUtcTime>%ld</vdrUtcTime>\n", now); + *mResponseMessage += f; + strftime(timebuf, sizeof(timebuf), "%Y-%m-%dT%H:%M:%S", localtime(&now)); // ISO 8601 snprintf(f, sizeof(f), "<vdrTime>%s</vdrTime>\n", timebuf); *mResponseMessage += f; - + *mResponseMessage += "<diskspace>\n"; snprintf(f, sizeof(f), "<free>%d</free>", free); *mResponseMessage += f; |