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

B #4072: Fix monitoring probes (#4073)

This commit is contained in:
Christian González 2020-01-07 13:43:28 +01:00 committed by Ruben S. Montero
parent c951c86677
commit 42df8eb2e3
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ module KVM
end
def self.number_of_processors
%x{nproc}.to_i
`grep -c processor /proc/cpuinfo`.to_i
end
def self.get_cpu_jiffies

View File

@ -162,7 +162,7 @@ module LXD
# @param vm_names [Array] of vms indexed by name. Value is a hash with :pid
# @return [Hash] with ps information
def get_cpu(vm_names)
multiplier = `nproc`.to_i * 100
multiplier = `grep -c processor /proc/cpuinfo`.to_i * 100
start_cpu_jiffies = get_cpu_jiffies