Change in ovirt-engine[master]: core: fix ArithmeticException when adding host with no swap ...

mkublin at redhat.com mkublin at redhat.com
Sun Mar 3 14:49:32 UTC 2013


Michael Kublin has submitted this change and it was merged.

Change subject: core: fix ArithmeticException when adding host with no swap space
......................................................................


core: fix ArithmeticException when adding host with no swap space

stat.getswap_total() will be divisor in checkVdsSwapThreshold(),
But when adding host which doesn't have swap space, it will return
zero

Change-Id: If4ad3d8b13cf2a784fcbb714434a676aba971102
Signed-off-by: plysan <plysab at gmail.com>
---
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Michael Kublin: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: If4ad3d8b13cf2a784fcbb714434a676aba971102
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: ly pan <plysab at gmail.com>
Gerrit-Reviewer: Michael Kublin <mkublin at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: ly pan <plysab at gmail.com>



More information about the Engine-commits mailing list