bin/metrics-cpu.rb in sensu-plugins-cpu-checks-1.1.1 vs bin/metrics-cpu.rb in sensu-plugins-cpu-checks-1.1.2
- old
+ new
@@ -36,10 +36,10 @@
long: '--scheme SCHEME',
default: "#{Socket.gethostname}.cpu"
option :proc_path,
long: '--proc-path /proc',
- proc: proc(&:to_f),
+ proc: proc(&:to_s),
default: '/proc'
def run
cpu_metrics = %w(user nice system idle iowait irq softirq steal guest guest_nice)
other_metrics = %w(ctxt processes procs_running procs_blocked btime intr)