]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Display total number of served connections on daemon shutdown
authorAlexander Barton <alex@barton.de>
Fri, 23 Apr 2010 21:29:22 +0000 (23:29 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 23 Apr 2010 21:29:22 +0000 (23:29 +0200)
src/ngircd/log.c

index 5a81b5b3e03083451d65150b033e04ce4d873151..ff811630b95dd7f1d5526c8cf20775657d3f2ef2 100644 (file)
@@ -146,8 +146,8 @@ GLOBAL void
 Log_Exit( void )
 {
        /* Good Bye! */
-       if( NGIRCd_SignalRestart ) Log( LOG_NOTICE, "%s done (restarting).", PACKAGE_NAME );
-       else Log( LOG_NOTICE, "%s done.", PACKAGE_NAME );
+       Log(LOG_NOTICE, "%s done%s, served %lu connections.", PACKAGE_NAME,
+           NGIRCd_SignalRestart ? " (restarting)" : "", Conn_CountAccepted());
 
 #ifdef DEBUG
        if( Error_File[0] )