Change in ovirt-engine[ovirt-engine-3.3]: core: more accurate scores for ED weight module

iheim at redhat.com iheim at redhat.com
Mon Dec 16 18:14:25 UTC 2013


Itamar Heim has submitted this change and it was merged.

Change subject: core: more accurate scores for ED weight module
......................................................................


core: more accurate scores for ED weight module

Even Distribution (ED) weight module inner calculation score
is a real number, and we expose it as an integer by rounding it
up.
Currently we round it up (Math.ceil), but to be more accurate we should round
it to nearest integer (Math.round).
To avoid 0 adding 1 to the score.

Change-Id: Ib668cf266629eb4e0f2c1cbd5ac893dc7deac19c
Bug-Url: https://bugzilla.redhat.com/1040460
Signed-off-by: Gilad Chaplik <gchaplik at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/policyunits/EvenDistributionWeightPolicyUnit.java
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Itamar Heim: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib668cf266629eb4e0f2c1cbd5ac893dc7deac19c
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Itamar Heim <iheim at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list