From 35c53d5b1afd0f4c8cbb44d7e34471b35db9f3a3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 4 Jan 2010 21:32:10 +0000 Subject: [PATCH] fix power of 10 in cps counter git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16144 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_time.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/switch_time.c b/src/switch_time.c index d4a405888c..b623abed25 100644 --- a/src/switch_time.c +++ b/src/switch_time.c @@ -69,7 +69,7 @@ static int MATRIX = 1; static int STEP_MS = 10; static int STEP_MIC = 10000; -static uint32_t TICK_PER_SEC = 100; +static uint32_t TICK_PER_SEC = 1000; static int MS_PER_TICK = 10; @@ -230,11 +230,11 @@ SWITCH_DECLARE(void) switch_time_set_matrix(switch_bool_t enable) if (MATRIX) { STEP_MS = 1; STEP_MIC = 1000; - TICK_PER_SEC = 1000; + TICK_PER_SEC = 10000; } else { STEP_MS = 10; STEP_MIC = 10000; - TICK_PER_SEC = 100; + TICK_PER_SEC = 1000; } switch_time_sync(); } @@ -379,7 +379,7 @@ static switch_status_t timer_init(switch_timer_t *timer) MS_PER_TICK = timer->interval; STEP_MS = 1; STEP_MIC = 1000; - TICK_PER_SEC = 1000; + TICK_PER_SEC = 10000; switch_time_sync(); }