summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2023-05-02 16:56:18 +1000
committerNathan Scott <nathans@redhat.com>2023-05-08 13:06:38 +1000
commit72235d8e098d9d79029dca65122605741e1aafad (patch)
tree96593b8bd9dc95dc5ab321bd363d36351cbd0a99 /ProcessList.c
parent0bdade1b6cb40c5bd374a93ac0489058a7421bb5 (diff)
Adapt platform code for the new Machine base class
Move host-centric data to new derived <Platform>Machine classes, separate from process-list-centric data.
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 49217b8c..58e63d03 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -410,13 +410,7 @@ Process* ProcessList_getProcess(ProcessList* this, pid_t pid, bool* preExisting,
return proc;
}
-void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
- // in pause mode only gather global data for meters (CPU/memory/...)
- if (pauseProcessUpdate) {
- ProcessList_goThroughEntries(this, true);
- return;
- }
-
+void ProcessList_scan(ProcessList* this) {
// mark all process as "dirty"
for (int i = 0; i < Vector_size(this->processes); i++) {
Process* p = (Process*) Vector_get(this->processes, i);
@@ -442,7 +436,7 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
firstScanDone = true;
}
- ProcessList_goThroughEntries(this, false);
+ ProcessList_goThroughEntries(this);
uid_t maxUid = 0;
const Settings* settings = host->settings;

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