mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-02 14:48:22 +00:00
FS-5010 --resolve
This commit is contained in:
parent
b18490ae06
commit
1b258b607b
@ -575,7 +575,7 @@ static switch_status_t timer_init(switch_timer_t *timer)
|
|||||||
private_info->roll = TIMER_MATRIX[timer->interval].roll;
|
private_info->roll = TIMER_MATRIX[timer->interval].roll;
|
||||||
private_info->ready = 1;
|
private_info->ready = 1;
|
||||||
|
|
||||||
if ((timer->interval == 10 || timer->interval == 30) && runtime.microseconds_per_tick > 10000) {
|
if (runtime.microseconds_per_tick > 10000 && (timer->interval % (int)(runtime.microseconds_per_tick / 1000)) != 0 && (timer->interval % 10) == 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Increasing global timer resolution to 10ms to handle interval %d\n", timer->interval);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Increasing global timer resolution to 10ms to handle interval %d\n", timer->interval);
|
||||||
runtime.microseconds_per_tick = 10000;
|
runtime.microseconds_per_tick = 10000;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user