Oved Ourfali has posted comments on this change.

Change subject: engine: HA VM Reservation feature
......................................................................


Patch Set 3:

you still have findbugs warnings:
HaReservationBalancePolicyUnit.java:68, 
ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL, Priority: Normal
integral value cast to double and then passed to Math.ceil in 
org.ovirt.engine.core.bll.scheduling.policyunits.HaReservationBalancePolicyUnit.balance(VDSGroup,
 List, Map, ArrayList)

This code converts an integral value (e.g., int or long) to a double precision 
floating point number and then passing the result to the Math.ceil() function, 
which rounds a double to the next higher integer value. This operation should 
always be a no-op, since the converting an integer to a double should give a 
number with no fractional part. It is likely that the operation that generated 
the value to be passed to Math.ceil was intended to be performed using double 
precision floating point arithmetic.

-- 
To view, visit http://gerrit.ovirt.org/22929
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I44e698e58ff5e4a0b74249d3fe3cf4acf042c324
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Kobi Ianko <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Kobi Ianko <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to