Skip to content
Snippets Groups Projects
Commit 4c6b1fc2 authored by Ryan Cobb's avatar Ryan Cobb
Browse files

Add comment to clarify system proc stat field

parent e9ae881c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -35,6 +35,8 @@ module Gitlab
def self.process_start_time
fields = File.read('/proc/self/stat').split
 
# fields[21] is linux proc stat field "(22) starttime".
# The value is expressed in clock ticks, divide by clock ticks for seconds.
( fields[21].to_i || 0 ) / clk_tck
end
else
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment