From 615d09459ee7c485be38c6957447d73838249054 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 23 Apr 2010 23:29:22 +0200 Subject: [PATCH] Display total number of served connections on daemon shutdown --- src/ngircd/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] ) -- 2.39.2