diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-05-02 08:37:16 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-05-02 08:37:16 +0000 |
| commit | 3a91de068ccffd54e9f0b1cf75c197f8a5d9f132 (patch) | |
| tree | cc5b0cc07d73eb69d2fcef48a35c1ef4c1009cb9 /bin | |
| parent | 0e9e4efa0a6c0617e3fcf9fb82b173ab626cb191 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/ps/print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 780e574c3a24..24ae6fad3048 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: print.c,v 1.10 1995/09/26 17:48:59 peter Exp $ + * $Id: print.c,v 1.11 1995/10/28 20:11:18 phk Exp $ */ #ifndef lint @@ -419,7 +419,7 @@ wchan(k, ve) (void)printf("%-*s", v->width, "-"); } -#define pgtok(a) (((a)*NBPG)/1024) +#define pgtok(a) (((a)*getpagesize())/1024) void vsize(k, ve) @@ -612,7 +612,7 @@ maxrss(k, ve) v = ve->var; #ifndef NEWVM /* not yet */ - if (KI_PROC(k)->p_maxrss != (RLIM_INFINITY/NBPG)) + if (KI_PROC(k)->p_maxrss != (RLIM_INFINITY/PAGE_SIZE)) (void)printf("%*d", v->width, pgtok(KI_PROC(k)->p_maxrss)); else #endif |
