On Wed, 30 Mar 2022 09:04:25 GMT, Severin Gehwolf <sgehw...@openjdk.org> wrote:

> The intent is to ensure floating point arithmetic on the second expression, 
> right? A clearer way to express this may be the following. This avoids the 
> `1.0` constant:
> 
> ```
> hostTicks = (long) (hostTicks * ((double) containerCPUs)/ totalCPUs)
> ```

1.0 used to convert the data type to floating point and compute the division 
first

-------------

PR: https://git.openjdk.java.net/jdk/pull/8028

Reply via email to