summaryrefslogtreecommitdiff
path: root/export_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'export_xml.c')
-rw-r--r--export_xml.c12
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++) {