dovecot-2.2: doveadm replicator status: Show sync time as "-" fo...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Mar 24 16:53:38 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/85f4f6ff4551
changeset: 16098:85f4f6ff4551
user: Timo Sirainen <tss at iki.fi>
date: Sun Mar 24 16:53:32 2013 +0200
description:
doveadm replicator status: Show sync time as "-" for "never".
diffstat:
src/doveadm/doveadm-replicator.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r ae5699ba6324 -r 85f4f6ff4551 src/doveadm/doveadm-replicator.c
--- a/src/doveadm/doveadm-replicator.c Sun Mar 24 16:52:39 2013 +0200
+++ b/src/doveadm/doveadm-replicator.c Sun Mar 24 16:53:32 2013 +0200
@@ -94,6 +94,8 @@
{
int diff = ioloop_time - t;
+ if (t == 0)
+ return "-";
return t_strdup_printf("%02d:%02d:%02d", diff/3600, diff/60, diff%60);
}
More information about the dovecot-cvs
mailing list