dovecot-2.0: anvil: Fixed penalty "last update" tracking.

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 20 09:46:47 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/3f2d9da0c6bc
changeset: 10778:3f2d9da0c6bc
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Feb 20 09:32:13 2010 +0200
description:
anvil: Fixed penalty "last update" tracking.

diffstat:

 src/anvil/penalty.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r e51089454ab0 -r 3f2d9da0c6bc src/anvil/penalty.c
--- a/src/anvil/penalty.c	Sat Feb 20 09:27:33 2010 +0200
+++ b/src/anvil/penalty.c	Sat Feb 20 09:32:13 2010 +0200
@@ -215,6 +215,8 @@
 	if (diff >= (1 << LAST_UPDATE_BITS)) {
 		rec->last_update = (1 << LAST_UPDATE_BITS) - 1;
 		rec->last_penalty = ioloop_time - rec->last_update;
+	} else {
+		rec->last_update = diff;
 	}
 
 	DLLIST2_APPEND(&penalty->oldest, &penalty->newest, rec);


More information about the dovecot-cvs mailing list