summaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-08-02 15:21:07 +0200
committerDaniel Lange <DLange@git.local>2021-08-02 15:21:07 +0200
commited82ce6456f0f904a0ab2b346b85d7cf46df109c (patch)
tree1b02b20548da6dbcdf53872c3c99a3c013588fd1 /ProcessList.h
parente341217fea844e1c45b7079146b9de7cb68e8c2a (diff)
parentedf236f9fcf257c5266cead0c3bc45087d937e65 (diff)
Merge branch 'cpu_count' of cgzones/htop
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ProcessList.h b/ProcessList.h
index da4a50da..93958cbb 100644
--- a/ProcessList.h
+++ b/ProcessList.h
@@ -83,12 +83,15 @@ typedef struct ProcessList_ {
memory_t usedSwap;
memory_t cachedSwap;
- unsigned int cpuCount;
+ unsigned int activeCPUs;
+ unsigned int existingCPUs;
} ProcessList;
+/* Implemented by platforms */
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* pidMatchList, uid_t userId);
void ProcessList_delete(ProcessList* pl);
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate);
+bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id);
ProcessList* ProcessList_init(ProcessList* this, const ObjectClass* klass, UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* pidMatchList, uid_t userId);

© 2014-2024 Faster IT GmbH | imprint | privacy policy