fix trivial compiler warning
This commit is contained in:
parent
81ec7555f8
commit
5ef8c49728
|
@ -509,7 +509,7 @@ static switch_status_t timer_init(switch_timer_t *timer)
|
||||||
runtime.microseconds_per_tick = 10000;
|
runtime.microseconds_per_tick = 10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timer->interval > 0 && (timer->interval < (runtime.microseconds_per_tick / 1000) || (timer->interval % 10) != 0)) {
|
if (timer->interval > 0 && (timer->interval < (int)(runtime.microseconds_per_tick / 1000) || (timer->interval % 10) != 0)) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Increasing global timer resolution to 1ms to handle interval %d\n", timer->interval);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Increasing global timer resolution to 1ms to handle interval %d\n", timer->interval);
|
||||||
runtime.microseconds_per_tick = 1000;
|
runtime.microseconds_per_tick = 1000;
|
||||||
switch_time_sync();
|
switch_time_sync();
|
||||||
|
|
Loading…
Reference in New Issue