[core] Fix - should take the amount of time until the timer next expires

This commit is contained in:
Jakub Karolczyk
2025-09-14 15:23:29 +01:00
parent b00a0de0ba
commit 96d086820b

View File

@@ -505,7 +505,7 @@ static switch_status_t _timerfd_check(switch_timer_t *timer, switch_bool_t step)
}
timerfd_gettime(it->fd, &val);
diff = val.it_interval.tv_nsec / 1000;
diff = val.it_value.tv_nsec / 1000;
if (diff > 0) {
/* still pending */