From 0385cbc068b04940b8f2e2b6b1d47d10437139e0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 31 Oct 2012 20:09:47 +0100 Subject: [PATCH] uloop: another timer fix Signed-off-by: Felix Fietkau --- uloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uloop.c b/uloop.c index bd09260..6bc974d 100644 --- a/uloop.c +++ b/uloop.c @@ -345,7 +345,7 @@ int uloop_timeout_set(struct uloop_timeout *timeout, int msecs) if (time->tv_usec > 1000000) { time->tv_sec++; - time->tv_usec %= 100000; + time->tv_usec %= 1000000; } return uloop_timeout_add(timeout);