dovecot-1.2: idxview: Show seconds in timestamps (except for cac...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Dec 19 13:03:55 EET 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/3b16e400fa8c
changeset: 8579:3b16e400fa8c
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 729576bb91d8 -r 3b16e400fa8c src/util/idxview.c
--- a/src/util/idxview.c Fri Dec 19 10:02:49 2008 +0200
+++ b/src/util/idxview.c Fri Dec 19 13:03:51 2008 +0200
@@ -40,7 +40,7 @@ static const char *unixdate2str(time_t t
struct tm *tm;
tm = localtime(×tamp);
- strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M", tm);
+ strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm);
return buf;
}
@@ -262,7 +262,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(cache->fields[cache_idx].last_used));
}
More information about the dovecot-cvs
mailing list