From: Michael Jerris Date: Mon, 16 May 2016 18:46:11 +0000 (-0400) Subject: FS-9164: [core] add Session-Per-Sec-Last to heartbeat event X-Git-Tag: v1.6.9~2^2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c030254795e29f63dc72ec6fdb4334ba1393351;p=thirdparty%2Ffreeswitch.git FS-9164: [core] add Session-Per-Sec-Last to heartbeat event --- diff --git a/src/switch_core.c b/src/switch_core.c index 4a8865612b..039531bb86 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -93,6 +93,7 @@ static void send_heartbeat(void) 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-Per-Sec-Last", "%u", runtime.sps_last); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Per-Sec-Max", "%u", runtime.sps_peak); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Per-Sec-FiveMin", "%u", runtime.sps_peak_fivemin); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Since-Startup", "%" SWITCH_SIZE_T_FMT, switch_core_session_id() - 1);