From: Alexander Barton Date: Fri, 23 Apr 2010 21:29:22 +0000 (+0200) Subject: Display total number of served connections on daemon shutdown X-Git-Tag: rel-16-rc2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=615d09459ee7c485be38c6957447d73838249054;p=ngircd Display total number of served connections on daemon shutdown --- diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 5a81b5b3..ff811630 100644 --- a/src/ngircd/log.c +++ b/src/ngircd/log.c @@ -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] )