uloop: another timer fix

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2012-10-31 20:09:47 +01:00
parent 33b9f3aa0b
commit 0385cbc068

View file

@ -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);