diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-05 23:59:38 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-05 23:59:38 +0200 |
commit | 91e5543757dad266f041f46d11bf973966368a30 (patch) | |
tree | c3f6b80463fd7c1bf6ec1a113a644e6934354a3d /export_xml.c | |
parent | a1039148b6e06df5af790846087b7837c60a88b9 (diff) |
Mostly-working implementation of time tracking for users.time
Needs some more testing.
Diffstat (limited to 'export_xml.c')
-rw-r--r-- | export_xml.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/export_xml.c b/export_xml.c index 1bed18b..4f77bbc 100644 --- a/export_xml.c +++ b/export_xml.c @@ -79,6 +79,18 @@ int export_xml(struct channel_t *channel, struct user_t *users) { xmlTextWriterWriteFormatString(writer, "%llu", user->monologs); xmlTextWriterEndElement(writer); + xmlTextWriterStartElement(writer, (const xmlChar*)"seen_first"); + xmlTextWriterWriteFormatString(writer, "%lu", user->seen_first); + xmlTextWriterEndElement(writer); + + xmlTextWriterStartElement(writer, (const xmlChar*)"seen_last"); + xmlTextWriterWriteFormatString(writer, "%lu", user->seen_last); + xmlTextWriterEndElement(writer); + + xmlTextWriterStartElement(writer, (const xmlChar*)"time_total"); + xmlTextWriterWriteFormatString(writer, "%lu", user->time_total); + xmlTextWriterEndElement(writer); + /* Add lines for this user. */ xmlTextWriterStartElement(writer, (const xmlChar*)"lines"); for(int h = 0; h < 24; h++) { |