]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
anvil: Fixed penalty "last update" tracking.
authorTimo Sirainen <tss@iki.fi>
Sat, 20 Feb 2010 07:32:13 +0000 (09:32 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 20 Feb 2010 07:32:13 +0000 (09:32 +0200)
--HG--
branch : HEAD

src/anvil/penalty.c

index 572d9a7720041bfe28fc881af7e30ebc9d8bc15d..f258b00e88fbbe27a3e8531f1a4844fd857f2b05 100644 (file)
@@ -215,6 +215,8 @@ void penalty_inc(struct penalty *penalty, const char *ident,
        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);