diff options
| author | Koichi Sasada <ko1@atdot.net> | 2023-12-23 05:23:53 +0900 |
|---|---|---|
| committer | Koichi Sasada <ko1@atdot.net> | 2023-12-23 05:56:02 +0900 |
| commit | a4b737213eb1d8f352f1f148c27e96a3f09f5d08 (patch) | |
| tree | 0d09da7bdedf7e22186039b07427a92fe362623a /spec/ruby/core/array | |
| parent | c974ee1abe5df5a4bb97264e608afbd134c77652 (diff) | |
MN: ceil timeout milli seconds
`hrrel / RB_HRTIME_PER_MSEC` floor the timeout value and it can
return wrong value by `Mutex#sleep` (return Integer even if
it should return nil (timeout'ed)).
This patch ceil the value and the issue was solved.
Diffstat (limited to 'spec/ruby/core/array')
0 files changed, 0 insertions, 0 deletions
