diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-11-25 13:41:32 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-11-25 13:41:32 +0000 |
commit | b211c5bb227c40b9d12c166323e150db627bf41b (patch) | |
tree | 36ce35f182daa1c13df3c230bd7fbaeda3858445 /sys/kern/tty.c | |
parent | a40a2e33ba10c04e632ee3f056c7f48db65d324e (diff) |
Use PAGE_SIZE instead of NBPG.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 6ad0d516372..cfe96e217dd 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.37 1999/06/01 08:23:52 art Exp $ */ +/* $OpenBSD: tty.c,v 1.38 1999/11/25 13:41:31 art Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -2031,7 +2031,7 @@ ttyinfo(tp) ttyprintf(tp, "%ld.%02lds ", stime.tv_sec, stime.tv_usec / 10000); -#define pgtok(a) (((u_long) ((a) * NBPG) / 1024)) +#define pgtok(a) (((u_long) ((a) * PAGE_SIZE) / 1024)) /* Print percentage cpu, resident set size. */ tmp = (pick->p_pctcpu * 10000 + FSCALE / 2) >> FSHIFT; ttyprintf(tp, "%d%% %ldk\n", |