Commit 2f6a1e77 authored by Ryan Cobb's avatar Ryan Cobb

Cleanup syntax in System max_open_file_descriptors

parent bb27bf4a
......@@ -27,11 +27,9 @@ module Gitlab
def self.max_open_file_descriptors
match = File.read('/proc/self/limits').match(/Max open files\s*(\d+)/)
if match && match[1]
max_fds = match[1].to_i
end
return unless match && match[1]
max_fds
match[1].to_i
end
def self.process_start_time
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment