diff options
-rw-r--r-- | export_xml.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/export_xml.c b/export_xml.c index daebe14..b16ff41 100644 --- a/export_xml.c +++ b/export_xml.c @@ -63,27 +63,27 @@ int export_xml(struct channel_t *channel, struct user_t *users) { xmlTextWriterEndElement(writer); xmlTextWriterStartElement(writer, (const xmlChar*)"words"); - xmlTextWriterWriteFormatString(writer, "%llu", users->words); + xmlTextWriterWriteFormatString(writer, "%llu", user->words); xmlTextWriterEndElement(writer); xmlTextWriterStartElement(writer, (const xmlChar*)"characters"); - xmlTextWriterWriteFormatString(writer, "%llu", users->words); + xmlTextWriterWriteFormatString(writer, "%llu", user->characters); xmlTextWriterEndElement(writer); xmlTextWriterStartElement(writer, (const xmlChar*)"kicks"); - xmlTextWriterWriteFormatString(writer, "%llu", users->words); + xmlTextWriterWriteFormatString(writer, "%llu", user->kicks); xmlTextWriterEndElement(writer); xmlTextWriterStartElement(writer, (const xmlChar*)"kicked"); - xmlTextWriterWriteFormatString(writer, "%llu", users->words); + xmlTextWriterWriteFormatString(writer, "%llu", user->kicked); xmlTextWriterEndElement(writer); xmlTextWriterStartElement(writer, (const xmlChar*)"monolog_lines"); - xmlTextWriterWriteFormatString(writer, "%llu", users->words); + xmlTextWriterWriteFormatString(writer, "%llu", user->monolog_lines); xmlTextWriterEndElement(writer); xmlTextWriterStartElement(writer, (const xmlChar*)"monologs"); - xmlTextWriterWriteFormatString(writer, "%llu", users->words); + xmlTextWriterWriteFormatString(writer, "%llu", user->monologs); xmlTextWriterEndElement(writer); /*xmlNewChild(user_node, NULL, (const xmlChar*)"nick", (xmlChar*)user->nick); @@ -110,7 +110,7 @@ int export_xml(struct channel_t *channel, struct user_t *users) { //snprintf(s, 0xf, "%lu", user->lines[h*4 + q]); //xmlNewChild(hour_node, NULL, (const xmlChar*)"quarter", (const xmlChar*)s); xmlTextWriterStartElement(writer, (const xmlChar*)"quarter"); - xmlTextWriterWriteFormatString(writer, "%lu", channel->hours[h*4 + q]); + xmlTextWriterWriteFormatString(writer, "%lu", user->lines[h*4 + q]); xmlTextWriterEndElement(writer); } xmlTextWriterEndElement(writer); |