From: Anthony Minessale Date: Wed, 10 Aug 2011 12:58:02 +0000 (-0500) Subject: FS-3415 --resolve X-Git-Tag: v1.2-rc1~51^2~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c8437a1da2607d52a7e65a9e002f6fc97c523c3;p=thirdparty%2Ffreeswitch.git FS-3415 --resolve --- diff --git a/src/switch_core.c b/src/switch_core.c index e7cd60d58f..12850ce998 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -81,6 +81,7 @@ static void send_heartbeat(void) duration.ms, duration.ms == 1 ? "" : "s", duration.mms, duration.mms == 1 ? "" : "s"); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Count", "%u", switch_core_session_count()); + switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Max-Sessions", "%u", switch_core_session_limit(0)); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Per-Sec", "%u", runtime.sps); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Since-Startup", "%" SWITCH_SIZE_T_FMT, switch_core_session_id() - 1); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Idle-CPU", "%f", switch_core_idle_cpu());