projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b44eb
)
uloop: fix sub-second timer offsets for uloop_timeout_set
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 31 Oct 2012 19:03:45 +0000
(20:03 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 31 Oct 2012 19:03:45 +0000
(20:03 +0100)
uloop.c
patch
|
blob
|
history
diff --git
a/uloop.c
b/uloop.c
index aa0975051140a9325fbb288fb81b959b9f56296c..bd09260c11ccba68d414e441e7af9971f46add10 100644
(file)
--- a/
uloop.c
+++ b/
uloop.c
@@
-341,7
+341,7
@@
int uloop_timeout_set(struct uloop_timeout *timeout, int msecs)
gettimeofday(&timeout->time, NULL);
time->tv_sec += msecs / 1000;
- time->tv_usec +=
msecs %
1000;
+ time->tv_usec +=
(msecs % 1000) *
1000;
if (time->tv_usec > 1000000) {
time->tv_sec++;