diff options
author | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:01 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:01 +0100 |
commit | 65357c8c46154de4e4eca14075bfe5523bb5fc14 (patch) | |
tree | 8f430ee5a0d5de377c4e7c94e47842a27c70d7e8 /linux/LinuxProcessList.h | |
parent | f80394a20254938142011855f2954b3f63fe5909 (diff) | |
download | debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.gz debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.bz2 debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.zip |
New upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'linux/LinuxProcessList.h')
-rw-r--r-- | linux/LinuxProcessList.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h index c484e75..09b84af 100644 --- a/linux/LinuxProcessList.h +++ b/linux/LinuxProcessList.h @@ -3,14 +3,21 @@ /* htop - LinuxProcessList.h (C) 2014 Hisham H. Muhammad -Released under the GNU GPL, see the COPYING file +Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include "config.h" + +#include <stdbool.h> +#include <sys/types.h> + +#include "Hashtable.h" #include "ProcessList.h" +#include "UsersTable.h" +#include "ZramStats.h" #include "zfs/ZfsArcStats.h" -extern long long btime; typedef struct CPUData_ { unsigned long long int totalTime; @@ -40,6 +47,10 @@ typedef struct CPUData_ { unsigned long long int guestPeriod; double frequency; + + #ifdef HAVE_SENSORS_SENSORS_H + double temperature; + #endif } CPUData; typedef struct TtyDriver_ { @@ -57,11 +68,12 @@ typedef struct LinuxProcessList_ { bool haveSmapsRollup; #ifdef HAVE_DELAYACCT - struct nl_sock *netlink_socket; + struct nl_sock* netlink_socket; int netlink_family; #endif ZfsArcStats zfs; + ZramStats zram; } LinuxProcessList; #ifndef PROCDIR @@ -96,6 +108,6 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui void ProcessList_delete(ProcessList* pl); -void ProcessList_goThroughEntries(ProcessList* super); +void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate); #endif |