spelling errors and boundary errors
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 24 Apr 1981 14:40:17 +0000 (06:40 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 24 Apr 1981 14:40:17 +0000 (06:40 -0800)
SCCS-vsn: sys/vm/vm_meter.c 4.7

usr/src/sys/vm/vm_meter.c

index 6e67e2d..86af61c 100644 (file)
@@ -1,4 +1,4 @@
-/*     vm_meter.c      4.6     81/04/23        */
+/*     vm_meter.c      4.7     81/04/23        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -89,7 +89,7 @@ setupclock()
        if (fastscan == 0) {
                nclust = LOOPPAGES / CLSIZE;
                nkb = (LOOPPAGES * NBPG) / 1024;
        if (fastscan == 0) {
                nclust = LOOPPAGES / CLSIZE;
                nkb = (LOOPPAGES * NBPG) / 1024;
-               if (nswdev == 1 && nkb >= 2*1024)
+               if (nswdev == 1 && physmem*NBPG > 2*1024*(1024-16))
                        printf("WARNING: should run interleaved swap with >= 2Mb\n");
                if (nswdev == 1 || nkb < 2*1024)
                        fastscan = nclust / 400;
                        printf("WARNING: should run interleaved swap with >= 2Mb\n");
                if (nswdev == 1 || nkb < 2*1024)
                        fastscan = nclust / 400;
@@ -111,7 +111,7 @@ setupclock()
                slowscan = 3 * fastscan;
        if (slowscan > maxslp)
                slowscan = maxslp;
                slowscan = 3 * fastscan;
        if (slowscan > maxslp)
                slowscan = maxslp;
-#ifdef defined(BERT) || defined(ERNIE)
+#if defined(BERT) || defined(ERNIE)
        printf("slowscan %d, fastscan %d, maxpgio %d\n",
            slowscan, fastscan, maxpgio);
        printf("lotsfree %d, desfree %d, minfree %d\n",
        printf("slowscan %d, fastscan %d, maxpgio %d\n",
            slowscan, fastscan, maxpgio);
        printf("lotsfree %d, desfree %d, minfree %d\n",