mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
fix power of 10 in cps counter
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16144 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6b01c74e4c
commit
35c53d5b1a
@ -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)
|
|||||||
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)
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user