lib/bluepill/process_conditions/cpu_usage.rb in bluepill-0.0.60 vs lib/bluepill/process_conditions/cpu_usage.rb in bluepill-0.0.61

- old
+ new

@@ -4,16 +4,16 @@ class CpuUsage < ProcessCondition def initialize(options = {}) @below = options[:below] end - def run(pid) + def run(pid, include_children) # third col in the ps axu output - System.cpu_usage(pid).to_f + System.cpu_usage(pid, include_children).to_f end def check(value) value < @below end end end -end \ No newline at end of file +end