mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-23 05:02:10 +01:00
Merge branch 'master' of https://github.com/FastVPSEestiOu/fastnetmon
This commit is contained in:
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user