summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorAdam Saponara <as@php.net>2020-10-31 20:36:53 -0400
committerAdam Saponara <as@php.net>2020-10-31 20:36:53 -0400
commita83f515f0fb75a079601be0d2e0e24b9402c9e15 (patch)
tree6985bc794500e9c0bd3351df4b6b530550f935e6 /ProcessList.c
parentdde71c6637905e1707bd1020c93e930f4b0a480b (diff)
Address items from review
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 1ae7b9cc..364de1e0 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -14,6 +14,7 @@ in the source distribution for its full text.
#include "CRT.h"
#include "XUtils.h"
+
ProcessList* ProcessList_init(ProcessList* this, const ObjectClass* klass, UsersTable* usersTable, Hashtable* pidMatchList, uid_t userId) {
this->processes = Vector_new(klass, true, DEFAULT_SIZE);
this->processTable = Hashtable_new(140, false);
@@ -306,6 +307,7 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
for (int i = 0; i < Vector_size(this->processes); i++) {
Process* p = (Process*) Vector_get(this->processes, i);
p->updated = false;
+ p->wasShown = p->show;
p->show = true;
}
@@ -334,7 +336,7 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
}
} else if (p->updated == false) {
// process no longer exists
- if (this->settings->highlightChanges) {
+ if (this->settings->highlightChanges && p->wasShown) {
// mark tombed
p->tombTs = this->scanTs + this->settings->highlightDelaySecs;
} else {

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