From 96d086820b9cbb04c08a7ff11bb1843ba721c1af Mon Sep 17 00:00:00 2001 From: Jakub Karolczyk Date: Sun, 14 Sep 2025 15:23:29 +0100 Subject: [PATCH] [core] Fix - should take the amount of time until the timer next expires --- src/switch_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_time.c b/src/switch_time.c index 1ee581453a..4a70b60fca 100644 --- a/src/switch_time.c +++ b/src/switch_time.c @@ -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 */ -- 2.47.3