summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2000-01-22 09:15:15 +0000
committerjasone <jasone@FreeBSD.org>2000-01-22 09:15:15 +0000
commit662c778dddfd1eedcfbf31144623538307e0ad6e (patch)
tree3fb4eb269ee16353d87ada75aac1eb3debe29b2d /lib/libc_r
parent0c931ae0a1cede63ffc1b5fb439698d402d4c8a1 (diff)
downloadFreeBSD-src-662c778dddfd1eedcfbf31144623538307e0ad6e.zip
FreeBSD-src-662c778dddfd1eedcfbf31144623538307e0ad6e.tar.gz
Fix millisecond to nanosecond conversion.
PR: misc/16245
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/uthread/uthread_poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_poll.c b/lib/libc_r/uthread/uthread_poll.c
index ce2b7af..fb6a266 100644
--- a/lib/libc_r/uthread/uthread_poll.c
+++ b/lib/libc_r/uthread/uthread_poll.c
@@ -61,7 +61,7 @@ _libc_poll(struct pollfd *fds, unsigned int nfds, int timeout)
} else if (timeout > 0) {
/* Convert the timeout in msec to a timespec: */
ts.tv_sec = timeout / 1000;
- ts.tv_nsec = (timeout % 1000) * 1000;
+ ts.tv_nsec = (timeout % 1000) * 1000000;
/* Set the wake up time: */
_thread_kern_set_timeout(&ts);
OpenPOWER on IntegriCloud