1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug getting available cpu in onehost

This commit is contained in:
Javi Fontan 2010-06-09 17:26:20 +02:00
parent 18313d25cc
commit 21eef9568f

View File

@ -73,7 +73,7 @@ ShowTableHost={
:proc => lambda {|d,e|
max_cpu=d["HOST_SHARE/MAX_CPU"].to_i
max_cpu=100 if max_cpu==0
max_cpu-d["HOST_SHARE/USED_CPU"].to_i
max_cpu-d["HOST_SHARE/CPU_USAGE"].to_i
}
},
:tmem => {