mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-22 11:53:16 +00:00
FS-7066 FS-7253 FS-7231 #comment revert some of patch
This commit is contained in:
parent
d7ebf121c6
commit
69a7b5fd11
@ -413,10 +413,10 @@ static switch_status_t timerfd_start_interval(interval_timer_t *it, int interval
|
|||||||
return SWITCH_STATUS_GENERR;
|
return SWITCH_STATUS_GENERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
val.it_interval.tv_sec = 0;
|
val.it_interval.tv_sec = interval / 1000;
|
||||||
val.it_interval.tv_nsec = interval * 1000000;
|
val.it_interval.tv_nsec = (interval % 1000) * 1000000;
|
||||||
val.it_value.tv_sec = 0;
|
val.it_value.tv_sec = 0;
|
||||||
val.it_value.tv_nsec = val.it_interval.tv_nsec;
|
val.it_value.tv_nsec = 100000;
|
||||||
|
|
||||||
if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &val, NULL) < 0) {
|
if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &val, NULL) < 0) {
|
||||||
close(fd);
|
close(fd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user