提交 35c53d5b authored 作者: Anthony Minessale's avatar Anthony Minessale

fix power of 10 in cps counter

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16144 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 6b01c74e
...@@ -69,7 +69,7 @@ static int MATRIX = 1; ...@@ -69,7 +69,7 @@ static int MATRIX = 1;
static int STEP_MS = 10; static int STEP_MS = 10;
static int STEP_MIC = 10000; 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; static int MS_PER_TICK = 10;
...@@ -230,11 +230,11 @@ SWITCH_DECLARE(void) switch_time_set_matrix(switch_bool_t enable) ...@@ -230,11 +230,11 @@ SWITCH_DECLARE(void) switch_time_set_matrix(switch_bool_t enable)
if (MATRIX) { if (MATRIX) {
STEP_MS = 1; STEP_MS = 1;
STEP_MIC = 1000; STEP_MIC = 1000;
TICK_PER_SEC = 1000; TICK_PER_SEC = 10000;
} else { } else {
STEP_MS = 10; STEP_MS = 10;
STEP_MIC = 10000; STEP_MIC = 10000;
TICK_PER_SEC = 100; TICK_PER_SEC = 1000;
} }
switch_time_sync(); switch_time_sync();
} }
...@@ -379,7 +379,7 @@ static switch_status_t timer_init(switch_timer_t *timer) ...@@ -379,7 +379,7 @@ static switch_status_t timer_init(switch_timer_t *timer)
MS_PER_TICK = timer->interval; MS_PER_TICK = timer->interval;
STEP_MS = 1; STEP_MS = 1;
STEP_MIC = 1000; STEP_MIC = 1000;
TICK_PER_SEC = 1000; TICK_PER_SEC = 10000;
switch_time_sync(); switch_time_sync();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论