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:
parent
18313d25cc
commit
21eef9568f
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user