summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-05-02 08:37:16 +0000
committerphk <phk@FreeBSD.org>1996-05-02 08:37:16 +0000
commit4622dbc30bb429e73df5bc451c81d74762753a53 (patch)
treecc5b0cc07d73eb69d2fcef48a35c1ef4c1009cb9 /bin
parentcc47383b6b80f0007b1648b4123a9ba33ef85a2c (diff)
downloadFreeBSD-src-4622dbc30bb429e73df5bc451c81d74762753a53.zip
FreeBSD-src-4622dbc30bb429e73df5bc451c81d74762753a53.tar.gz
Replace NBPG with getpagesize()
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 780e574..24ae6fa 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
OpenPOWER on IntegriCloud