From 5a42321d438211210e0869e5e90f8d75d1354e14 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 2 Aug 2010 16:46:12 -0700 Subject: Hurd: fix timeout rounding in select --- hurd/hurdselect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hurd/hurdselect.c') diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c index 544eee9..a7228f0 100644 --- a/hurd/hurdselect.c +++ b/hurd/hurdselect.c @@ -52,7 +52,7 @@ _hurd_select (int nfds, int firstfd, lastfd; mach_msg_timeout_t to = (timeout != NULL ? (timeout->tv_sec * 1000 + - timeout->tv_nsec / 1000000) : + (timeout->tv_nsec + 999999) / 1000000) : 0); struct { -- cgit v1.1