summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2021-09-23 12:44:46 +0200
committeraristocratos <gnmjpl@gmail.com>2021-09-23 12:44:46 +0200
commit5e6d1babdc67804977bb12e9a429dacc1c765ed0 (patch)
tree797e017f7e59083d63e698be40e81f73cf23d8d2
parentafc2288405f286cb4145d0c1d81f293d64a3df35 (diff)
Fixed: Processes not completely hidden when collapsed in tree mode
-rw-r--r--src/btop_draw.cpp5
-rw-r--r--src/linux/btop_collect.cpp1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/btop_draw.cpp b/src/btop_draw.cpp
index d569f46..2e376c7 100644
--- a/src/btop_draw.cpp
+++ b/src/btop_draw.cpp
@@ -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;
@@ -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;
diff --git a/src/linux/btop_collect.cpp b/src/linux/btop_collect.cpp
index f5ffdff..9e9bbcc 100644
--- a/src/linux/btop_collect.cpp
+++ b/src/linux/btop_collect.cpp
@@ -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;