]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add sps to heartbeat.
authorMichael Jerris <mike@jerris.com>
Mon, 7 Jan 2008 17:10:48 +0000 (17:10 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 7 Jan 2008 17:10:48 +0000 (17:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7126 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core.c

index 2a29a5dabb8156b93345800c8629a469cfc4a4be..49af5ad1618e1014118efc328d19cf8b4b65fca5 100644 (file)
@@ -70,6 +70,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, "Session-Per-Sec", "%u", runtime.sps);
                switch_event_fire(&event);
        }
 }