dovecot-2.2: doveadm replicator: Fixed showing over 1h old times...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 8 14:43:28 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/db5ce75d70b9
changeset: 16249:db5ce75d70b9
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 08 14:43:09 2013 +0300
description:
doveadm replicator: Fixed showing over 1h old timestamps.

diffstat:

 src/doveadm/doveadm-replicator.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r cff14ef4cce5 -r db5ce75d70b9 src/doveadm/doveadm-replicator.c
--- a/src/doveadm/doveadm-replicator.c	Mon Apr 08 14:38:30 2013 +0300
+++ b/src/doveadm/doveadm-replicator.c	Mon Apr 08 14:43:09 2013 +0300
@@ -102,7 +102,8 @@
 
 	if (t == 0)
 		return "-";
-	return t_strdup_printf("%02d:%02d:%02d", diff/3600, diff/60, diff%60);
+	return t_strdup_printf("%02d:%02d:%02d", diff/3600,
+			       (diff/60)%60, diff%60);
 }
 
 static void cmd_replicator_status_overview(struct replicator_context *ctx)


More information about the dovecot-cvs mailing list