diff options
Diffstat (limited to 'src/btop_shared.cpp')
-rw-r--r-- | src/btop_shared.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/btop_shared.cpp b/src/btop_shared.cpp index b2f70a8..fe0f334 100644 --- a/src/btop_shared.cpp +++ b/src/btop_shared.cpp @@ -18,6 +18,7 @@ tab-size = 4 #include <ranges> +#include "btop_config.hpp" #include "btop_shared.hpp" #include "btop_tools.hpp" @@ -168,6 +169,12 @@ namespace Proc { filter_found++; p.filtered = true; } + else if (Config::getB("proc_aggregate")) { + cur_proc.cpu_p += p.cpu_p; + cur_proc.cpu_c += p.cpu_c; + cur_proc.mem += p.mem; + cur_proc.threads += p.threads; + } } if (collapsed or filtering) { return; |