Skip to content

Commit

Permalink
Fixed: Processes not completely hidden when collapsed in tree mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos committed Sep 23, 2021
1 parent afc2288 commit 5e6d1ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/btop_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1331,11 +1331,8 @@ namespace Proc {
+ Theme::c("inactive_fg") + Fx::ub + graph_bg * (d_width / 3) + Mv::l(d_width / 3)
+ Theme::c("proc_misc") + detailed_mem_graph(detailed.mem_bytes, (redraw or data_same or not alive)) + ' '
+ Theme::c("title") + Fx::b + detailed.memory;


}


//? Check bounds of current selection and view
if (start > 0 and numpids <= select_max)
start = 0;
Expand All @@ -1349,7 +1346,7 @@ namespace Proc {
//* Iteration over processes
int lc = 0;
for (int n=0; auto& p : plist) {
if (n++ < start or p.filtered) continue;
if (n++ < start or p.filtered or (proc_tree and p.tree_index == plist.size())) continue;
bool is_selected = (lc + 1 == selected);
if (is_selected) {
selected_pid = (int)p.pid;
Expand Down
1 change: 1 addition & 0 deletions src/linux/btop_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ namespace Proc {
out_procs.back().get().cpu_p += p.cpu_p;
out_procs.back().get().mem += p.mem;
out_procs.back().get().threads += p.threads;
filter_found++;
}
if (collapsed and not filtering) {
cur_proc.filtered = true;
Expand Down

0 comments on commit 5e6d1ba

Please sign in to comment.