1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 05:02:10 +01:00
This commit is contained in:
Pavel Odintsov 2015-03-10 11:54:17 +03:00
commit 81009750b7

@ -2187,6 +2187,11 @@ void cleanup_ban_list() {
// Every X seconds we will run ban list cleaner thread
int iteration_sleep_time = 600;
// If we use very small ban time we should call ban_cleanup thread more often
if (iteration_sleep_time > standard_ban_time) {
iteration_sleep_time = int(standard_ban_time / 2);
}
logger<<log4cpp::Priority::INFO<<"Run banlist cleanup thread";
while (true) {