Mercurial > dovecot > core-2.2
changeset 13464:61d3544f8fdf
stats: Export also username for commands.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 15 Sep 2011 23:39:33 +0300 |
parents | 309a707c22c0 |
children | ff6272a52f0d |
files | src/stats/client-export.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/stats/client-export.c Thu Sep 15 12:20:55 2011 +0300 +++ b/src/stats/client-export.c Thu Sep 15 23:39:33 2011 +0300 @@ -256,7 +256,7 @@ if (!cmd->header_sent) { o_stream_send_str(client->output, - "cmd\targs\tsession\tlast_update"MAIL_STATS_HEADER); + "cmd\targs\tsession\tuser\tlast_update"MAIL_STATS_HEADER); cmd->header_sent = TRUE; } @@ -275,6 +275,9 @@ T_BEGIN { str_append(cmd->str, guid_128_to_string(command->session->guid)); + str_append_c(cmd->str, '\t'); + str_tabescape_write(cmd->str, + command->session->user->name); } T_END; client_export_timeval(cmd->str, &command->last_update); client_export_mail_stats(cmd->str, &command->stats);