mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 12:18:18 +00:00
FS-7066 FS-7253 FS-7231 #comment wait, there's more.... need this too, let's never change this code again....
This commit is contained in:
parent
d6777e3aa1
commit
0dfd08bc86
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user