uloop: another timer fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
33b9f3aa0b
commit
0385cbc068
1 changed files with 1 additions and 1 deletions
2
uloop.c
2
uloop.c
|
@ -345,7 +345,7 @@ int uloop_timeout_set(struct uloop_timeout *timeout, int msecs)
|
||||||
|
|
||||||
if (time->tv_usec > 1000000) {
|
if (time->tv_usec > 1000000) {
|
||||||
time->tv_sec++;
|
time->tv_sec++;
|
||||||
time->tv_usec %= 100000;
|
time->tv_usec %= 1000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
return uloop_timeout_add(timeout);
|
return uloop_timeout_add(timeout);
|
||||||
|
|
Loading…
Reference in a new issue