diff --git a/src/sunstone/public/js/opennebula.js b/src/sunstone/public/js/opennebula.js index 904492f964..09434b0ae4 100644 --- a/src/sunstone/public/js/opennebula.js +++ b/src/sunstone/public/js/opennebula.js @@ -55,6 +55,13 @@ var OpenNebula = { "ERROR", "DISABLED"][value]; break; + case "HOST_SIMPLE","host_simple": + return ["ON", + "ON", + "ON", + "ERROR", + "OFF"][value]; + break; case "VM","vm": return ["INIT", "PENDING", diff --git a/src/sunstone/public/js/plugins/hosts-tab.js b/src/sunstone/public/js/plugins/hosts-tab.js index 579c53aec5..17c005fb62 100644 --- a/src/sunstone/public/js/plugins/hosts-tab.js +++ b/src/sunstone/public/js/plugins/hosts-tab.js @@ -376,14 +376,14 @@ function hostElementArray(host_json){ var pb_mem = '
\
\ - '+ratio_mem+'%\ + '+ratio_mem+'%\
\
'; var pb_cpu = '
\
\ - '+ratio_cpu+'%\ + '+ratio_cpu+'%\
\
'; @@ -395,7 +395,7 @@ function hostElementArray(host_json){ host.HOST_SHARE.RUNNING_VMS, //rvm pb_cpu, pb_mem, - OpenNebula.Helper.resource_state("host",host.STATE) ]; + OpenNebula.Helper.resource_state("host_simple",host.STATE) ]; } @@ -661,7 +661,7 @@ $(document).ready(function(){ { "bSortable": false, "aTargets": ["check"] }, { "sWidth": "60px", "aTargets": [0,4] }, { "sWidth": "35px", "aTargets": [1] }, - { "sWidth": "120px", "aTargets": [5,6] } + { "sWidth": "200px", "aTargets": [5,6] } ] });