]> mj.ucw.cz Git - bouncer.git/commitdiff
Fix expiration
authorMartin Mares <mj@ucw.cz>
Sat, 5 Nov 2016 10:39:23 +0000 (11:39 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 5 Nov 2016 10:39:23 +0000 (11:39 +0100)
bouncer.c

index 25e3e30d0a2c3f38062fe134d93ff3ae07db68f4..526b7d689cef49e47ed284d2a7741ab36e53f857 100644 (file)
--- a/bouncer.c
+++ b/bouncer.c
@@ -10,7 +10,7 @@
  *     FIXME: Parse "N more failures" messages
  */
 
  *     FIXME: Parse "N more failures" messages
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include <ucw/lib.h>
 #include <ucw/clists.h>
 
 #include <ucw/lib.h>
 #include <ucw/clists.h>
@@ -256,7 +256,7 @@ static void cleanup_list(clist *list, uns *counter, timestamp_t max_time, uns ma
       if (!c)
        break;
 
       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;
       if (*counter > max_count)
        {
          static timestamp_t last_overflow_warning;