From 38faf3cbd8cc96696b92609817c5544a105f155c Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 2 May 2016 23:33:49 +0200 Subject: [PATCH] - timer.c: do also check diff.tv_usec to trigger next update --- timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timer.c b/timer.c index 1009f56..e4e1a47 100644 --- a/timer.c +++ b/timer.c @@ -435,7 +435,7 @@ int timer_process(struct timespec *delay) /* a negative delay has occurred (positive clock skew or some timers are faster than the time needed for processing their callbacks) */ - if (diff.tv_sec < 0) { + if (diff.tv_sec < 0 || diff.tv_usec < 0) { /* zero "diff" so the next update is triggered immediately */ timerclear(&diff); } else { -- 2.39.5