]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5010 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Jan 2013 15:34:11 +0000 (09:34 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Jan 2013 15:34:11 +0000 (09:34 -0600)
src/switch_time.c

index 6ce27b90c4bfb4ad17edd1e25453fde2d0c315ca..5a33a208c4cb714e1b5865438894e483429acc14 100644 (file)
@@ -575,7 +575,7 @@ static switch_status_t timer_init(switch_timer_t *timer)
                private_info->roll = TIMER_MATRIX[timer->interval].roll;
                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);
                        runtime.microseconds_per_tick = 10000;
                }