[ruby-cvs:78466] a47d6c256f (master): Fix random failure on getusage-missing environments
"Takashi Kokubun" <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.cvs |
|---|---|
| Message-ID | <[email protected]> |
Takashi Kokubun 2019-12-02 17:12:29 +0900 (Mon, 02 Dec 2019)
New Revision: a47d6c256f
https://github.com/ruby/ruby/commit/a47d6c256f
Log:
Fix random failure on getusage-missing environments
`* 1e6` makes a spurious result about floating point number's precision.
```
irb(main)[01:0]> 16.028
=> 16.028
irb(main)[02:0]> (16.028 * 1e6)
=> 16027999.999999998
```
Modified files:
spec/ruby/core/process/times_spec.rb