Skip to content

Commit 7fe8abb

Browse files
committed
Reset global client counter at max_window and not only after
1 parent 62bdb21 commit 7fe8abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/netfilter/clientmanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace netfilter
4141
else
4242
clients.insert( std::make_pair( from, Client( *this, from, time ) ) );
4343

44-
if( time - global_last_reset > max_window )
44+
if( time - global_last_reset >= max_window )
4545
{
4646
global_last_reset = time;
4747
global_count = 1;

0 commit comments

Comments
 (0)