changeset 13351:5bd2deb87ccf

stats: Fixed dumping command stats.
author Timo Sirainen <tss@iki.fi>
date Thu, 01 Sep 2011 07:24:25 +0300
parents f77ee6f0c42a
children 55d34ec2e8ac
files src/stats/client-export.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/stats/client-export.c	Thu Sep 01 07:21:41 2011 +0300
+++ b/src/stats/client-export.c	Thu Sep 01 07:24:25 2011 +0300
@@ -240,7 +240,7 @@
 	struct client_export_cmd *cmd = client->cmd_export;
 	struct mail_command *command = client->mail_cmd_iter;
 
-	i_assert(cmd->level == MAIL_EXPORT_LEVEL_SESSION);
+	i_assert(cmd->level == MAIL_EXPORT_LEVEL_COMMAND);
 	mail_command_unref(&client->mail_cmd_iter);
 
 	if (!cmd->header_sent) {
@@ -260,6 +260,7 @@
 		str_tabescape_write(cmd->str, command->name);
 		str_append_c(cmd->str, '\t');
 		str_tabescape_write(cmd->str, command->args);
+		str_append_c(cmd->str, '\t');
 		T_BEGIN {
 			str_append(cmd->str,
 				   guid_128_to_string(command->session->guid));