lib/bluepill/process_conditions/cpu_usage.rb in bluepill-0.0.5 vs lib/bluepill/process_conditions/cpu_usage.rb in bluepill-0.0.6
- old
+ new
@@ -5,10 +5,10 @@
@below = options[:below]
end
def run(pid)
# third col in the ps axu output
- System.ps_axu[pid][2].to_f
+ System.cpu_usage(pid).to_f
end
def check(value)
value < @below
end
\ No newline at end of file