mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-12-19 03:37:46 +00:00
[core] Fix - should take the amount of time until the timer next expires
This commit is contained in:
@@ -505,7 +505,7 @@ static switch_status_t _timerfd_check(switch_timer_t *timer, switch_bool_t step)
|
|||||||
}
|
}
|
||||||
|
|
||||||
timerfd_gettime(it->fd, &val);
|
timerfd_gettime(it->fd, &val);
|
||||||
diff = val.it_interval.tv_nsec / 1000;
|
diff = val.it_value.tv_nsec / 1000;
|
||||||
|
|
||||||
if (diff > 0) {
|
if (diff > 0) {
|
||||||
/* still pending */
|
/* still pending */
|
||||||
|
|||||||
Reference in New Issue
Block a user