From 313e8a231ec913166b13120b377413b5950bfb3a Mon Sep 17 00:00:00 2001 From: Jorge Miguel Lobo Escalona <47326048+jloboescalona2@users.noreply.github.com> Date: Mon, 23 Nov 2020 10:18:50 +0100 Subject: [PATCH] B #5179: fix overcommit memory (#459) Signed-off-by: Jorge Lobo --- src/sunstone/public/app/tabs/hosts-tab/panels/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/hosts-tab/panels/info.js b/src/sunstone/public/app/tabs/hosts-tab/panels/info.js index 58977ab910..cc894fa45d 100644 --- a/src/sunstone/public/app/tabs/hosts-tab/panels/info.js +++ b/src/sunstone/public/app/tabs/hosts-tab/panels/info.js @@ -207,7 +207,7 @@ define(function(require) { //.off and .on prevent multiple clicks events $(context).off("click", "#update_reserved_hosts").on("click", "#update_reserved_hosts", function(){ var CPU = that && that.element && that.element.HOST_SHARE && that.element.HOST_SHARE.TOTAL_CPU; - var MEMORY = that && that.element && that.element.HOST_SHARE && that.element.HOST_SHARE.MAX_MEM; + var MEMORY = that && that.element && that.element.HOST_SHARE && that.element.HOST_SHARE.TOTAL_MEM; if(CPU && MEMORY){ $("#update_reserved_hosts", context).prop("disabled", true); var reservedCPU = parseInt($("#textInput_reserved_cpu_hosts", context).val(),10);