From b989eeb350a72848f3db338f7d3300844a6b53f7 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 3 Jul 2011 20:54:33 -0400 Subject: [PATCH] fixed a log variable name --- citadel/context.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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); } -- 2.30.2