diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-03 02:28:14 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-03 02:28:14 +0000 |
commit | 736f97b278faf7a182839f268698535abe1ad541 (patch) | |
tree | a5198af64ebb0c2ad821f8660db1674fcd4953b9 /win32 | |
parent | 61ce3f57442913cb8097c5e80075719f837835b4 (diff) |
* win32/win32.c (rb_w32_select_with_thread): rounding up the fraction of
tv_usec instead of rounding down.
this change is an experiment to get rid of failures on vc10-x64 CI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index fa96d417d1..15c6020dc8 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2960,7 +2960,7 @@ rb_w32_select_with_thread(int nfds, fd_set *rd, fd_set *wr, fd_set *ex, if (!rb_w32_time_subtract(&rest, &now)) break; if (compare(&rest, &wait) < 0) dowait = &rest; } - Sleep(dowait->tv_sec * 1000 + dowait->tv_usec / 1000); + Sleep(dowait->tv_sec * 1000 + (dowait->tv_usec + 999) / 1000); } } } |