aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/top.c
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2018-05-08 17:57:43 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2018-05-08 17:57:43 -0400
commit2a0fb5c1edc4455ec7e4a0396b54433aac59d98e (patch)
tree6881815465a4b2f5fd1a0c6128f8e9f6c7bf44d2 /src/firemon/top.c
parentmore errLogExit (diff)
downloadfirejail-2a0fb5c1edc4455ec7e4a0396b54433aac59d98e.tar.gz
firejail-2a0fb5c1edc4455ec7e4a0396b54433aac59d98e.tar.zst
firejail-2a0fb5c1edc4455ec7e4a0396b54433aac59d98e.zip
don't display firejail --list/--tree/--top processes in firemon stats
Diffstat (limited to 'src/firemon/top.c')
-rw-r--r--src/firemon/top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/firemon/top.c b/src/firemon/top.c
index d60a0baef..b8dd92b3c 100644
--- a/src/firemon/top.c
+++ b/src/firemon/top.c
@@ -273,6 +273,8 @@ void top(void) {
273 unsigned utime = 0; 273 unsigned utime = 0;
274 unsigned stime = 0; 274 unsigned stime = 0;
275 for (i = 0; i < max_pids; i++) { 275 for (i = 0; i < max_pids; i++) {
276 if (i == skip_process)
277 continue;
276 if (pids[i].level == 1) 278 if (pids[i].level == 1)
277 pid_store_cpu(i, 0, &utime, &stime); 279 pid_store_cpu(i, 0, &utime, &stime);
278 } 280 }
@@ -313,6 +315,8 @@ void top(void) {
313 315
314 // print processes 316 // print processes
315 for (i = 0; i < max_pids; i++) { 317 for (i = 0; i < max_pids; i++) {
318 if (i == skip_process)
319 continue;
316 if (pids[i].level == 1) { 320 if (pids[i].level == 1) {
317 float cpu = 0; 321 float cpu = 0;
318 int cnt = 0; // process count 322 int cnt = 0; // process count