- # Return the result of this request
- [status, headers, body]
- end
- private
- def resident_size
- # Read statm to get process sizes. Format is
- # Size RSS Shared Text Lib Data
- fields = File.open("/proc/self/statm") do |file|
- fields = file.gets.split(" ")
- end
-
- # Return resident size in megabytes
- return fields[1].to_i / 256
+ # Return the result of this request
+ [status, headers, body]
+ end
+
+ private
+
+ def resident_size
+ # Read statm to get process sizes. Format is
+ # Size RSS Shared Text Lib Data
+ fields = File.open("/proc/self/statm") do |file|
+ fields = file.gets.split(" ")