lib/bluepill/process_conditions/cpu_usage.rb in bluepill-0.0.4 vs lib/bluepill/process_conditions/cpu_usage.rb in bluepill-0.0.5

- old
+ new

@@ -4,10 +4,11 @@ def initialize(options = {}) @below = options[:below] end def run(pid) - `ps ux -p #{pid} | tail -1 | awk '{print $3}'`.to_f + # third col in the ps axu output + System.ps_axu[pid][2].to_f end def check(value) value < @below end \ No newline at end of file