summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-02-19 19:34:49 +0000
committerluoqi <luoqi@FreeBSD.org>1999-02-19 19:34:49 +0000
commitbc93c63b6f8c0958e4477597f14f8897f1c8cec3 (patch)
treed108ab7d8f0fdeccb03c33073e9722969573c189 /sys/kern/tty.c
parente0559c2622dd5910cbc4e00c4cf297fddf071801 (diff)
downloadFreeBSD-src-bc93c63b6f8c0958e4477597f14f8897f1c8cec3.zip
FreeBSD-src-bc93c63b6f8c0958e4477597f14f8897f1c8cec3.tar.gz
Introduce machine-dependent macro pgtok() to convert page count to number
of kilobytes. Its definition for each architecture could be optimized to avoid potential numerical overflows.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 3b79a98..0f3b365 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.113 1999/01/30 12:17:36 phk Exp $
+ * $Id: tty.c,v 1.114 1999/02/19 14:25:34 luoqi Exp $
*/
/*-
@@ -2269,7 +2269,6 @@ ttyinfo(tp)
ttyprintf(tp, "%ld.%02lds ",
stime.tv_sec, stime.tv_usec / 10000);
-#define pgtok(a) (((a) * PAGE_SIZE) / 1024)
/* Print percentage cpu, resident set size. */
tmp = (pick->p_pctcpu * 10000 + FSCALE / 2) >> FSHIFT;
ttyprintf(tp, "%d%% %ldk\n",
OpenPOWER on IntegriCloud