From: Felix Fietkau Date: Wed, 31 Oct 2012 19:09:47 +0000 (+0100) Subject: uloop: another timer fix X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=0385cbc068b04940b8f2e2b6b1d47d10437139e0 uloop: another timer fix Signed-off-by: Felix Fietkau --- 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);