diff options
Diffstat (limited to 'src/firemon/top.c')
-rw-r--r-- | src/firemon/top.c | 4 |
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 |