]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dont calibrate clock when timerfd enabled
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 22 Mar 2011 02:01:20 +0000 (21:01 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 22 Mar 2011 02:01:20 +0000 (21:01 -0500)
src/switch_core.c

index 73516cf168b82e45dd10d0ef305eb4fd134e659a..03b3d1c8d09d1c589c21a263e0b04305b26c0c0c 100644 (file)
@@ -1637,6 +1637,9 @@ static void switch_load_core_config(const char *file)
                                        switch_time_set_monotonic(switch_true(var));
                                } else if (!strcasecmp(var, "enable-softtimer-timerfd")) {
                                        switch_time_set_timerfd(switch_true(var));
+                                       if (switch_true(val)) {
+                                               switch_clear_flag((&runtime), SCF_CALIBRATE_CLOCK);
+                                       }
                                } else if (!strcasecmp(var, "enable-clock-nanosleep")) {
                                        switch_time_set_nanosleep(switch_true(var));
                                } else if (!strcasecmp(var, "enable-cond-yield")) {