From: svenhoefer Date: Mon, 2 May 2016 21:33:49 +0000 (+0200) Subject: - timer.c: do also check diff.tv_usec to trigger next update X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=38faf3cbd8cc96696b92609817c5544a105f155c;p=lcd4linux.git - timer.c: do also check diff.tv_usec to trigger next update --- 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 {