mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 04:04:35 +03:00
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
This commit is contained in:

committed by
Hisham Muhammad

parent
ca1cce4ce7
commit
bd1d719a61
@ -98,6 +98,7 @@ typedef struct LinuxProcess_ {
|
||||
long m_drs;
|
||||
long m_lrs;
|
||||
long m_dt;
|
||||
unsigned long long starttime;
|
||||
#ifdef HAVE_TASKSTATS
|
||||
unsigned long long io_rchar;
|
||||
unsigned long long io_wchar;
|
||||
@ -143,6 +144,8 @@ typedef struct LinuxProcess_ {
|
||||
#endif
|
||||
|
||||
|
||||
long long btime; /* semi-global */
|
||||
|
||||
extern ProcessFieldData Process_fields[];
|
||||
|
||||
extern ProcessPidColumn Process_pidColumns[];
|
||||
|
Reference in New Issue
Block a user