From: Martin Mares Date: Sat, 5 Nov 2016 10:39:23 +0000 (+0100) Subject: Fix expiration X-Git-Tag: v1.0~13 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=0d8245f66c9aa4e5ea8b951009dac541c4749ad6;p=bouncer.git Fix expiration --- diff --git a/bouncer.c b/bouncer.c index 25e3e30..526b7d6 100644 --- a/bouncer.c +++ b/bouncer.c @@ -10,7 +10,7 @@ * FIXME: Parse "N more failures" messages */ -#define LOCAL_DEBUG +#undef LOCAL_DEBUG #include #include @@ -256,7 +256,7 @@ static void cleanup_list(clist *list, uns *counter, timestamp_t max_time, uns ma if (!c) break; - timestamp_t expire_in = c->last_fail + max_time - now; + timestamp_t expire_in = c->last_fail + max_time; if (*counter > max_count) { static timestamp_t last_overflow_warning;