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 ...@@ -27,11 +27,9 @@ module Gitlab
def self.max_open_file_descriptors def self.max_open_file_descriptors
match = File.read('/proc/self/limits').match(/Max open files\s*(\d+)/) match = File.read('/proc/self/limits').match(/Max open files\s*(\d+)/)
if match && match[1] return unless match && match[1]
max_fds = match[1].to_i
end
max_fds match[1].to_i
end end
def self.process_start_time 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