]> 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:39:47 +0000 (17:39 +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 a3fdb510f7493a9249426c371ea55cbc685990c6..7905ea9994395ae0e5d029aa2987296a89140e49 100644 (file)
@@ -74,7 +74,7 @@ typedef struct proc_t {
 // and so on...
        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
 #ifdef SIGNAL_STRING
     char
        // Linux 2.1.7x and up have 64 signals. Allow 64, plus '\0' and padding.