提交 3e33988d authored 作者: Michael Jerris's avatar Michael Jerris

add sps to heartbeat.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7126 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 df749a42
...@@ -70,6 +70,7 @@ static void send_heartbeat(void) ...@@ -70,6 +70,7 @@ static void send_heartbeat(void)
duration.ms, duration.ms == 1 ? "" : "s", duration.mms, duration.mms == 1 ? "" : "s"); 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, "Session-Count", "%u", switch_core_session_count());
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Per-Sec", "%u", runtime.sps);
switch_event_fire(&event); switch_event_fire(&event);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论