]> granicus.if.org Git - procps-ng/commitdiff
Fixes small bug in struct proc_t documentation.
authorDylan Swiggett <swiggett@google.com>
Tue, 29 Nov 2016 22:34:37 +0000 (22:34 +0000)
committerCraig Small <csmall@dropbear.xyz>
Mon, 11 May 2020 07:44:48 +0000 (17:44 +1000)
From http://man7.org/linux/man-pages/man5/proc.5.html:

(22) starttime  %llu
                        The time the process started after system boot.  In
                        kernels before Linux 2.6, this value was expressed
                        in jiffies.  Since Linux 2.6, the value is expressed
                        in clock ticks (divide by sysconf(_SC_CLK_TCK)).

proc/readproc.h

index 0d07c75097d7c87b8d7d8a2cd37177c88439486d..576fed4f0b0083e450c9b2bf6f28fdc7372c1904 100644 (file)
@@ -47,7 +47,7 @@ typedef struct proc_t {
         stime,          // stat            kernel-mode CPU time accumulated by process
         cutime,         // stat            cumulative utime of process and reaped children
         cstime,         // stat            cumulative stime of process and reaped children
-        start_time,     // stat            start time of process -- seconds since 1-1-70
+        start_time,     // stat            start time of process -- seconds since system boot
         blkio_tics,     // stat            time spent waiting for block IO
         gtime,          // stat            guest time of the task in jiffies
         cgtime;         // stat            guest time of the task children in jiffies