dovecot-1.1: idxview: Show seconds in timestamps (except for cac...

dovecot at dovecot.org dovecot at dovecot.org
Fri Dec 19 13:04:40 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/906ba1819d56
changeset: 8061:906ba1819d56
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Dec 19 13:03:51 2008 +0200
description:
idxview: Show seconds in timestamps (except for cache headers).

diffstat:

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

diffs (21 lines):

diff -r 859099ac07bb -r 906ba1819d56 src/util/idxview.c
--- a/src/util/idxview.c	Fri Dec 19 09:31:39 2008 +0200
+++ b/src/util/idxview.c	Fri Dec 19 13:03:51 2008 +0200
@@ -43,7 +43,7 @@ static const char *unixdate2str_mins(tim
 	struct tm *tm;
 
 	tm = localtime(&timestamp);
-	strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M", tm);
+	strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm);
 	return buf;
 }
 
@@ -259,7 +259,7 @@ static void dump_cache_hdr(struct mail_c
 			printf("%4u ", field->field_size);
 		else
 			printf("   - ");
-		printf("%-4s %s\n",
+		printf("%-4s %.16s\n",
 		       cache_decision2str(field->decision),
 		       unixdate2str_mins(cache->fields[cache_idx].last_used));
 	}


More information about the dovecot-cvs mailing list