From 0d8245f66c9aa4e5ea8b951009dac541c4749ad6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 5 Nov 2016 11:39:23 +0100 Subject: [PATCH] Fix expiration --- bouncer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2