Skip to content

Commit

Permalink
Fix compilation issue in Action.c
Browse files Browse the repository at this point in the history
Accidentally introduced by merging #1254
Caused by refactor in #1294

Fixes #1300
  • Loading branch information
BenBE committed Sep 9, 2023
1 parent cbf075d commit 8d290c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Action.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ 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

Machine_scanTables(st->host); // needed to not have a visible delay showing wrong data

return HTOP_RECALCULATE | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING;
}
Expand All @@ -240,7 +241,8 @@ 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

Machine_scanTables(st->host); // needed to not have a visible delay showing wrong data

return HTOP_RECALCULATE | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING;
}
Expand Down

0 comments on commit 8d290c4

Please sign in to comment.