Alexander Barton : Display total number of served connections on daemon shutdown
 
            Module: ngircd.git Branch: master Commit: 615d09459ee7c485be38c6957447d73838249054 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=615d09459... Author: Alexander Barton <alex@barton.de> Date: Fri Apr 23 23:29:22 2010 +0200 Display total number of served connections on daemon shutdown --- src/ngircd/log.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 5a81b5b..ff81163 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] )
Teilnehmer (1)
- 
                 alex@arthur.barton.de alex@arthur.barton.de