Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
2f6a1e77
Commit
2f6a1e77
authored
Apr 26, 2019
by
Ryan Cobb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup syntax in System max_open_file_descriptors
parent
bb27bf4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lib/gitlab/metrics/system.rb
lib/gitlab/metrics/system.rb
+2
-4
No files found.
lib/gitlab/metrics/system.rb
View file @
2f6a1e77
...
...
@@ -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
]
ma
x_fds
ma
tch
[
1
].
to_i
end
def
self
.
process_start_time
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment