System Monitoring Program (MON)
Peter Gross
pag at hao.UUCP
Wed Dec 5 16:32:56 AEST 1984
vm.c in the mon distribution won't compile on a non-dual-cpu Vax.
My diffs follow.
--peter gross
hao!pag
*** /tmp/,RCSt1003602 Tue Dec 4 23:27:28 1984
--- vm.c Tue Dec 4 23:27:04 1984
***************
*** 1,3
/*
* V M
*
--- 1,5 -----
+ static char *rcsid = "$Header: vm.c,v 1.2 84/12/04 23:24:41 pag Exp $";
+
/*
* V M
*
***************
*** 8,13
* printing. This makes it very difficult to change the screen
* format. A better solution would be to move all the prints
* into a screen update function.
*/
#include "mon.h"
--- 10,23 -----
* printing. This makes it very difficult to change the screen
* format. A better solution would be to move all the prints
* into a screen update function.
+ *
+ * $Log: vm.c,v $
+ * Revision 1.2 84/12/04 23:24:41 pag
+ * Workaround to get mon running: vm.c wouldn't compile on a non-dual
+ * Vax because on those machines v_swtch2 is undefined. Added an ifdef
+ * around this code.
+ *
+ *
*/
#include "mon.h"
***************
*** 77,82
/* Display CPU info */
mvprintw(CPUY+1,4,"%4d %4d", (rate.v_intr) - hz, rate.v_syscall);
mvprintw(CPUY+1,17,"%4d", rate.v_swtch);
if (dualcpu)
mvprintw(CPUY+1,30,"%4d", rate.v_swtch2);
cputime();
--- 87,93 -----
/* Display CPU info */
mvprintw(CPUY+1,4,"%4d %4d", (rate.v_intr) - hz, rate.v_syscall);
mvprintw(CPUY+1,17,"%4d", rate.v_swtch);
+ #ifdef HAVE_DUAL_CPU
if (dualcpu)
mvprintw(CPUY+1,30,"%4d", rate.v_swtch2);
#endif
***************
*** 79,84
mvprintw(CPUY+1,17,"%4d", rate.v_swtch);
if (dualcpu)
mvprintw(CPUY+1,30,"%4d", rate.v_swtch2);
cputime();
/* Display additional stuff */
--- 90,96 -----
#ifdef HAVE_DUAL_CPU
if (dualcpu)
mvprintw(CPUY+1,30,"%4d", rate.v_swtch2);
+ #endif
cputime();
/* Display additional stuff */
More information about the Comp.sources.bugs
mailing list