dovecot: Print the number of cache file compressions.

dovecot at dovecot.org dovecot at dovecot.org
Tue Dec 4 11:22:40 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/efd6dfbddf19
changeset: 6923:efd6dfbddf19
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 04 11:22:36 2007 +0200
description:
Print the number of cache file compressions.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/util/idxview.c |    4 +++-

diffs (14 lines):

diff -r 284c22a7a92e -r efd6dfbddf19 src/util/idxview.c
--- a/src/util/idxview.c	Tue Dec 04 11:04:55 2007 +0200
+++ b/src/util/idxview.c	Tue Dec 04 11:22:36 2007 +0200
@@ -199,7 +199,9 @@ static void dump_cache_hdr(struct mail_c
 	hdr = cache->hdr;
 	printf("version .............. = %u\n", hdr->version);
 	printf("indexid .............. = %u (%s)\n", hdr->indexid, unixdate2str(hdr->indexid));
-	printf("file_seq ............. = %u (%s)\n", hdr->file_seq, unixdate2str(hdr->file_seq));
+	printf("file_seq ............. = %u (%s) (%d compressions)\n",
+	       hdr->file_seq, unixdate2str(hdr->file_seq),
+	       hdr->file_seq - hdr->indexid);
 	printf("continued_record_count = %u\n", hdr->continued_record_count);
 	printf("hole_offset .......... = %u\n", hdr->hole_offset);
 	printf("used_file_size ....... = %u\n", hdr->used_file_size);


More information about the dovecot-cvs mailing list