]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 22 Aug 2008 20:47:32 +0000 (20:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 22 Aug 2008 20:47:32 +0000 (20:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9356 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_stress/mod_stress.cpp

index 552085af9eb4f8efa38274ed7d78fdb526ae3364..d61edea3f81bcbdabe91a215764a74a6d6d6d796 100644 (file)
@@ -170,10 +170,11 @@ static switch_bool_t stress_callback(switch_media_bug_t *bug, void *user_data, s
 
             if (sth->stress) {
                 switch_event_t *event, *dup;
-                
+                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Stress %0.2f\n");
+
                 if (switch_event_create(&event, SWITCH_EVENT_DETECTED_SPEECH) == SWITCH_STATUS_SUCCESS) {
                     switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Speech-Type", "stress-level");
-                    switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Stress-Level", "%02f", sth->stress);
+                    switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Stress-Level", "%0.2f", sth->stress);
                     if (switch_event_dup(&dup, event) == SWITCH_STATUS_SUCCESS) {
                         switch_event_fire(&dup);
                     }