提交 0dfd08bc authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-7066 FS-7253 FS-7231 #comment wait, there's more.... need this too, let's…

FS-7066 FS-7253 FS-7231 #comment wait, there's more.... need this too, let's never change this code again....
上级 d6777e3a
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论