# File lib/get_process_mem.rb, line 75 def linux_status_memory(file = @status_file) line = file.each_line.detect {|line| line.start_with? 'VmRSS'.freeze } return unless line return unless (_name, value, unit = line.split(nil)).length == 3 CONVERSION[unit.downcase!] * value.to_i rescue Errno::EACCES, Errno::ENOENT 0 end