From: Art Cancro Date: Mon, 4 Jul 2011 00:54:33 +0000 (-0400) Subject: fixed a log variable name X-Git-Tag: v8.11~623 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=b989eeb350a72848f3db338f7d3300844a6b53f7 fixed a log variable name --- diff --git a/citadel/context.c b/citadel/context.c index c77f3cdd2..95bdc46f1 100644 --- a/citadel/context.c +++ b/citadel/context.c @@ -284,22 +284,25 @@ void terminate_idle_sessions(void) session_to_kill = 0; begin_critical_section(S_SESSION_TABLE); for (ccptr = ContextList; ccptr != NULL; ccptr = ccptr->next) { - if ( (ccptr!=CC) - && (config.c_sleeping > 0) - && (now - (ccptr->lastcmd) > config.c_sleeping) ) { + if ( + (ccptr != CC) + && (config.c_sleeping > 0) + && (now - (ccptr->lastcmd) > config.c_sleeping) + ) { if (!ccptr->dont_term) { ccptr->kill_me = KILLME_IDLE; ++killed; } - else - longrunners ++; + else { + ++longrunners; + } } } end_critical_section(S_SESSION_TABLE); if (killed > 0) syslog(LOG_INFO, "Scheduled %d idle sessions for termination\n", killed); if (longrunners > 0) - syslog(LOG_INFO, "Didn't terminate %d protected idle sessions;\n", killed); + syslog(LOG_INFO, "Didn't terminate %d protected idle sessions", longrunners); }