# File lib/god/conditions/memory_usage.rb, line 28 def test return false unless File.exist?(self.pid_file) pid = File.open(self.pid_file).read.strip process = System::Process.new(pid) @timeline.push(process.memory) if @timeline.select { |x| x > self.above }.size >= self.times.first @timeline.clear return true else return false end end