diff options
author | Mike Frysinger | 2007-02-08 08:21:58 +0000 |
---|---|---|
committer | Mike Frysinger | 2007-02-08 08:21:58 +0000 |
commit | 0aa6ba5d44af32d0bf460c8d92cda686bae64c92 (patch) | |
tree | 72424e60f565c397b8a2b10f88855f11b46c4010 /include | |
parent | 4423e5beefd6f17dfa836211899ee70edcc64a5b (diff) | |
download | busybox-0aa6ba5d44af32d0bf460c8d92cda686bae64c92.zip busybox-0aa6ba5d44af32d0bf460c8d92cda686bae64c92.tar.gz |
make sure ps/top output what they claim: vsz, not rss ... down the line we should make the output controllable either at runtime or buildtime as both statistics are quite useful
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 5b2f625..bb4a687 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -668,7 +668,7 @@ typedef struct { DIR *dir; /* Fields are set to 0/NULL if failed to determine (or not requested) */ char *cmd; - unsigned long rss; + unsigned long vsz; unsigned long stime, utime; unsigned pid; unsigned ppid; @@ -691,13 +691,13 @@ enum { PSSCAN_COMM = 1 << 5, PSSCAN_CMD = 1 << 6, PSSCAN_STATE = 1 << 7, - PSSCAN_RSS = 1 << 8, + PSSCAN_VSZ = 1 << 8, PSSCAN_STIME = 1 << 9, PSSCAN_UTIME = 1 << 10, /* These are all retrieved from proc/NN/stat in one go: */ PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID | PSSCAN_COMM | PSSCAN_STATE - | PSSCAN_RSS | PSSCAN_STIME | PSSCAN_UTIME, + | PSSCAN_VSZ | PSSCAN_STIME | PSSCAN_UTIME, }; procps_status_t* alloc_procps_scan(int flags); void free_procps_scan(procps_status_t* sp); |