diff options
Diffstat (limited to 'libbb/procps.c')
-rw-r--r-- | libbb/procps.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libbb/procps.c b/libbb/procps.c index 5833a1f0d..9207e9254 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -357,7 +357,14 @@ procps_status_t* FAST_FUNC procps_scan(procps_status_t* sp, int flags) | |||
357 | sp->gid = sb.st_gid; | 357 | sp->gid = sb.st_gid; |
358 | } | 358 | } |
359 | 359 | ||
360 | if (flags & PSSCAN_STAT) { | 360 | /* These are all retrieved from proc/NN/stat in one go: */ |
361 | if (flags & (PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID | ||
362 | | PSSCAN_COMM | PSSCAN_STATE | ||
363 | | PSSCAN_VSZ | PSSCAN_RSS | ||
364 | | PSSCAN_STIME | PSSCAN_UTIME | PSSCAN_START_TIME | ||
365 | | PSSCAN_TTY | PSSCAN_NICE | ||
366 | | PSSCAN_CPU) | ||
367 | ) { | ||
361 | char *cp, *comm1; | 368 | char *cp, *comm1; |
362 | int tty; | 369 | int tty; |
363 | #if !ENABLE_FEATURE_FAST_TOP | 370 | #if !ENABLE_FEATURE_FAST_TOP |