B #5179: fix overcommit memory (#459)

Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
(cherry picked from commit 313e8a231e)
This commit is contained in:
Jorge Miguel Lobo Escalona authored and Tino Vazquez committed 2020-11-23 10:35:35 +01:00
1 parent 832f8c6529
commit 9deaa91d20
1 file changed
+1 -1
@@ -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.MONITORING && that.element.MONITORING.CAPACITY;
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());