|
Lines 208-213
Link Here
|
| 208 |
/* Ignore self */ |
208 |
/* Ignore self */ |
| 209 |
if (mypid == procpid) continue; |
209 |
if (mypid == procpid) continue; |
| 210 |
|
210 |
|
|
|
211 |
if (metric == METRIC_CPU) |
| 212 |
if (procppid == 0 && procpid != 1) |
| 213 |
continue; |
| 214 |
|
| 211 |
if ((options & STAT) && (strstr (statopts, procstat))) |
215 |
if ((options & STAT) && (strstr (statopts, procstat))) |
| 212 |
resultsum |= STAT; |
216 |
resultsum |= STAT; |
| 213 |
if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL)) |
217 |
if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL)) |