[Freeswitch-svn] [commit] r12472 - freeswitch/trunk/src

FreeSWITCH SVN brian at freeswitch.org
Thu Mar 5 13:34:13 PST 2009


Author: brian
Date: Thu Mar  5 15:34:13 2009
New Revision: 12472

Log:
 add sessions since start up to heartbeat event

Modified:
   freeswitch/trunk/src/switch_core.c

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Thu Mar  5 15:34:13 2009
@@ -75,6 +75,7 @@
 
 		switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Count", "%u", switch_core_session_count());
 		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_fire(&event);
 	}
 }



More information about the Freeswitch-svn mailing list