Commit 4c6b1fc2 authored by Ryan Cobb's avatar Ryan Cobb

Add comment to clarify system proc stat field

parent e9ae881c
......@@ -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
......
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