[6095] in Athena Bugs
vax 7.1H: machtype
daemon@ATHENA.MIT.EDU (vanharen@ATHENA.MIT.EDU)
Mon Sep 24 16:21:17 1990
From: vanharen@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
Date: Mon, 24 Sep 90 16:21:03 EDT
System name: fries
Type and version: CVAXSTAR 7.1H (2 update(s) to same version)
Display type: SM
What's wrong:
machtype -v -M should be more verbose. It prints total mem
in terms of Meg, but not user mem.
% machtype -v -M
0x658000 user, 0x7e3000 (8 M) total
What should have happened:
it should print used mem in terms of meg, also, to be
consistent, like so:
% machtype -v -M
0x658000 (6 M) user, 0x7e3000 (8 M) total
Patch:
==============================================================================
*** machtype.c Thu Dec 28 09:44:57 1989
--- /tmp/machtype.c Mon Sep 24 14:45:10 1990
***************
*** 806,812 ****
exit(4);
} else {
if(verbose)
! printf("%#06x user, ",mem * NBPG);
}
pos = nl[X_physmem].n_value;
if(pos == 0) {
--- 806,812 ----
exit(4);
} else {
if(verbose)
! printf("%#06x (%d M) user, ",mem * NBPG,(mem * NBPG + MEG/2)/MEG);
}
pos = nl[X_physmem].n_value;
if(pos == 0) {