summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2023-06-03 19:51:48 +0200
committerBenBE <BenBE@geshi.org>2023-09-08 13:43:05 +0200
commitcbf075d27b51a1d90678ea0b5f9d0d353810ebe8 (patch)
tree3561ab7b2dba4e0a8405a2e81ba9edab76f0097e /Action.c
parenteb86bdf3771493ee7567f7ab336cc8735f618bae (diff)
Update process list on thread visibility toggling
Fixes #1254
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Action.c b/Action.c
index e7b69ee0..43bb5a62 100644
--- a/Action.c
+++ b/Action.c
@@ -231,6 +231,7 @@ static Htop_Reaction actionToggleKernelThreads(State* st) {
Settings* settings = st->host->settings;
settings->hideKernelThreads = !settings->hideKernelThreads;
settings->lastUpdate++;
+ ProcessList_scan(st->host->pl); // needed to not have a visible delay showing wrong data
return HTOP_RECALCULATE | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING;
}
@@ -239,6 +240,7 @@ static Htop_Reaction actionToggleUserlandThreads(State* st) {
Settings* settings = st->host->settings;
settings->hideUserlandThreads = !settings->hideUserlandThreads;
settings->lastUpdate++;
+ ProcessList_scan(st->host->pl); // needed to not have a visible delay showing wrong data
return HTOP_RECALCULATE | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING;
}

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