From: Jakub Karolczyk Date: Sun, 14 Sep 2025 14:23:29 +0000 (+0100) Subject: [core] Fix - should take the amount of time until the timer next expires X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96d086820b9cbb04c08a7ff11bb1843ba721c1af;p=thirdparty%2Ffreeswitch.git [core] Fix - should take the amount of time until the timer next expires --- 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 */