dovecot-2.2: stats: Also export the clock_time to doveadm.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jan 15 22:54:26 EET 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/d6b6d83efb4e
changeset: 17110:d6b6d83efb4e
user: Timo Sirainen <tss at iki.fi>
date: Wed Jan 15 15:54:14 2014 -0500
description:
stats: Also export the clock_time to doveadm.
diffstat:
src/stats/client-export.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 43c02090c6cf -r d6b6d83efb4e src/stats/client-export.c
--- a/src/stats/client-export.c Wed Jan 15 15:50:38 2014 -0500
+++ b/src/stats/client-export.c Wed Jan 15 15:54:14 2014 -0500
@@ -97,7 +97,7 @@
static void
client_export_mail_stats(string_t *str, const struct mail_stats *stats)
{
-#define MAIL_STATS_HEADER "\tuser_cpu\tsys_cpu" \
+#define MAIL_STATS_HEADER "\tuser_cpu\tsys_cpu\tclock_time" \
"\tmin_faults\tmaj_faults\tvol_cs\tinvol_cs" \
"\tdisk_input\tdisk_output" \
"\tread_count\tread_bytes\twrite_count\twrite_bytes" \
@@ -108,6 +108,8 @@
(unsigned int)stats->user_cpu.tv_usec);
str_printfa(str, "\t%ld.%06u", (long)stats->sys_cpu.tv_sec,
(unsigned int)stats->sys_cpu.tv_usec);
+ str_printfa(str, "\t%ld.%06u", (long)stats->clock_time.tv_sec,
+ (unsigned int)stats->clock_time.tv_usec);
str_printfa(str, "\t%u\t%u", stats->min_faults, stats->maj_faults);
str_printfa(str, "\t%u\t%u", stats->vol_cs, stats->invol_cs);
str_printfa(str, "\t%llu\t%llu",
More information about the dovecot-cvs
mailing list