diff --git a/src/cli/etc/onehost.yaml b/src/cli/etc/onehost.yaml index d4ed08fecb..812990fd68 100644 --- a/src/cli/etc/onehost.yaml +++ b/src/cli/etc/onehost.yaml @@ -13,8 +13,8 @@ :size: 9 :left: true -:RVM: - :desc: Number of Virtual Machines running +:TVM: + :desc: Total Virtual Machines allocated to the Host :size: 3 :ZVM: @@ -70,7 +70,7 @@ - :ID - :NAME - :CLUSTER -- :RVM +- :TVM - :ALLOCATED_CPU - :ALLOCATED_MEM - :STAT diff --git a/src/cli/one_helper/onehost_helper.rb b/src/cli/one_helper/onehost_helper.rb index 2d4dc3e32c..bda3eef175 100644 --- a/src/cli/one_helper/onehost_helper.rb +++ b/src/cli/one_helper/onehost_helper.rb @@ -105,7 +105,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper OpenNebulaHelper.cluster_str(d["CLUSTER"]) end - column :RVM, "Number of Virtual Machines running", :size=>3 do |d| + column :TVM, "Total Virtual Machines allocated to the Host", :size=>3 do |d| d["HOST_SHARE"]["RUNNING_VMS"] || 0 end @@ -210,7 +210,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper OneHostHelper.state_to_str(d["STATE"]) end - default :ID, :NAME, :CLUSTER, :RVM, :ALLOCATED_CPU, :ALLOCATED_MEM, :STAT + default :ID, :NAME, :CLUSTER, :TVM, :ALLOCATED_CPU, :ALLOCATED_MEM, :STAT end table