bin/instrument_server in instrumental_tools-0.3.0 vs bin/instrument_server in instrumental_tools-0.3.1
- old
+ new
@@ -165,10 +165,10 @@
if previous_values
data.each do |category, value|
output["cpu.#{category}"] = value / total * 100
end
end
- output["cpu.in_use"] = 100 - data['idle'] / total * 100
+ output["cpu.in_use"] = 100 - data[:idle] / total * 100
output
end
def self.loadavg
min_1, min_5, min_15 = `cat /proc/loadavg`.split(/\s+/)