]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Don't reset counters on RESTART numeric-250
authorAlexander Barton <alex@barton.de>
Sun, 25 Apr 2010 10:54:13 +0000 (12:54 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 25 Apr 2010 10:54:13 +0000 (12:54 +0200)
When ngIRCd restarts, all the connection counters are preserved now,
as well as the command counters for example.

It's unclear if resetting or not resetting is the "correct" behaviour,
but it's quite clear that the behaviour should be consistent for all the
counters ngIRCd uses ...

And initializing "WCounter", the global but temporary write counter,
is not necessarry at all: it is initialized (reset) before its use in
the command parser (see parse.c).

src/ngircd/conn.c

index 0861b08b9e10f38fbd754be58cc8bf44a4b249aa..4367754061ab7779423af62dcefcc66f25b9a649 100644 (file)
@@ -389,10 +389,6 @@ Conn_Init( void )
 
        for (i = 0; i < Pool_Size; i++)
                Init_Conn_Struct(i);
-
-       /* Initialize global counters (required after RESTART command!) */
-       NumConnections = NumConnectionsMax = NumConnectionsAccepted = 0;
-       WCounter = 0;
 } /* Conn_Init */