From: Anthony Minessale Date: Wed, 18 Feb 2015 20:40:56 +0000 (-0600) Subject: FS-7066 FS-7253 FS-7231 #comment wait, there's more.... need this too, let's never... X-Git-Tag: v1.4.17~1^2~21^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dfd08bc86e3065b2e118d421207485b93f3d5e4;p=thirdparty%2Ffreeswitch.git FS-7066 FS-7253 FS-7231 #comment wait, there's more.... need this too, let's never change this code again.... --- diff --git a/src/switch_time.c b/src/switch_time.c index 8d51292e4b..be3debf560 100644 --- a/src/switch_time.c +++ b/src/switch_time.c @@ -415,8 +415,8 @@ static switch_status_t timerfd_start_interval(interval_timer_t *it, int interval val.it_interval.tv_sec = interval / 1000; val.it_interval.tv_nsec = (interval % 1000) * 1000000; - val.it_value.tv_sec = val.it_interval.tv_sec; - val.it_value.tv_nsec = val.it_interval.tv_nsec; + val.it_value.tv_sec = 0; + val.it_value.tv_nsec = 100000; if (timerfd_settime(fd, 0, &val, NULL) < 0) { close(fd); @@ -1038,8 +1038,8 @@ SWITCH_MODULE_RUNTIME_FUNCTION(softtimer_runtime) if (tfd > -1) { spec.it_interval.tv_sec = 0; spec.it_interval.tv_nsec = runtime.microseconds_per_tick * 1000; - spec.it_value.tv_sec = spec.it_interval.tv_sec; - spec.it_value.tv_nsec = spec.it_interval.tv_nsec; + spec.it_value.tv_sec = 0; + spec.it_value.tv_nsec = 100000; if (timerfd_settime(tfd, 0, &spec, NULL)) { close(tfd);