diff options
author | Shawn Landden <slandden@gmail.com> | 2018-08-18 21:29:03 -0700 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-19 01:29:03 -0300 |
commit | bd1d719a61bbca16f7dd373dcc1e234f3c8ea09b (patch) | |
tree | 01742fb178258558f461854d98ccf11968084136 /linux/LinuxProcessList.h | |
parent | ca1cce4ce7a0d57ef5dffc76c44d9bfa533e7229 (diff) |
Linux: add process->starttime and use it for STARTTIME column (#700)
this way a remount of /proc will not reset starttimes
and we can also see startup times for processes started before the mount
of /proc
also record btime (boot time in seconds since epoch) as Linux semi-global
Diffstat (limited to 'linux/LinuxProcessList.h')
-rw-r--r-- | linux/LinuxProcessList.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h index 0851a102..f30b487d 100644 --- a/linux/LinuxProcessList.h +++ b/linux/LinuxProcessList.h @@ -20,6 +20,8 @@ in the source distribution for its full text. #include "ProcessList.h" +extern long long btime; + typedef struct CPUData_ { unsigned long long int totalTime; unsigned long long int userTime; @@ -84,7 +86,7 @@ typedef struct LinuxProcessList_ { #endif #ifndef PROC_LINE_LENGTH -#define PROC_LINE_LENGTH 512 +#define PROC_LINE_LENGTH 4096 #endif |