dovecot-2.1: director: Improved request timeout error more.

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 12 13:17:58 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/d27b6724db32
changeset: 14290:d27b6724db32
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 12 13:17:50 2012 +0200
description:
director: Improved request timeout error more.

diffstat:

 src/director/director-request.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 1b37d6422905 -r d27b6724db32 src/director/director-request.c
--- a/src/director/director-request.c	Mon Mar 12 13:15:26 2012 +0200
+++ b/src/director/director-request.c	Mon Mar 12 13:17:50 2012 +0200
@@ -35,7 +35,7 @@
 	if (request->dir->ring_last_sync_time == 0)
 		str_append(str, "Ring has never been synced");
 	else {
-		secs =ioloop_time - request->dir->ring_last_sync_time;
+		secs = ioloop_time - request->dir->ring_last_sync_time;
 		if (request->dir->ring_synced)
 			str_printfa(str, "Ring synced for %u secs", secs);
 		else
@@ -47,7 +47,8 @@
 	if (user != NULL) {
 		if (user->weak)
 			str_append(str, ", weak user");
-		str_printfa(str, ", ts=%u", user->timestamp);
+		str_printfa(str, ", user refreshed %u secs ago",
+			    ioloop_time - user->timestamp);
 	}
 	str_append_c(str, ')');
 	return str_c(str);


More information about the dovecot-cvs mailing list