[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dovecot-cvs
Subject:    dovecot-2.2: stats: Also export the clock_time to doveadm.
From:       dovecot () dovecot ! org (dovecot at dovecot ! org)
Date:       2014-01-15 20:54:26
Message-ID: hg.d6b6d83efb4e.1389819266.6920021320469856403 () localhost ! localdomain
[Download RAW message or body]

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",

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic