aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2003-01-25 19:32:35 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2003-01-25 19:32:35 +0000
commite027a83457fee691e5468472cba8530de02b2d34 (patch)
tree9db419a2ac63a9ad5f6b1a3c2a097f112e1b255b
parentc3342fe1412c1ce851b9b8f8f75e6cd6f9660d89 (diff)
Notes
-rw-r--r--usr.sbin/sade/label.c2
-rw-r--r--usr.sbin/sysinstall/label.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index 305eaada8346..24d438f5244d 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/label.c
@@ -1350,7 +1350,7 @@ try_auto_label(Device **devs, Device *dev, int perc, int *req)
def = SWAP_MIN_SIZE * ONE_MEG;
if (def > SWAP_AUTO_LIMIT_SIZE * ONE_MEG)
def = SWAP_AUTO_LIMIT_SIZE * ONE_MEG;
- nom = (int)(physmem / 512) / 2;
+ nom = (int)(physmem / 512) / 8;
sz = nom + (def - nom) * perc / 100;
}
swap_chunk = Create_Chunk_DWIM(label_chunk_info[here].c->disk,
diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c
index 305eaada8346..24d438f5244d 100644
--- a/usr.sbin/sysinstall/label.c
+++ b/usr.sbin/sysinstall/label.c
@@ -1350,7 +1350,7 @@ try_auto_label(Device **devs, Device *dev, int perc, int *req)
def = SWAP_MIN_SIZE * ONE_MEG;
if (def > SWAP_AUTO_LIMIT_SIZE * ONE_MEG)
def = SWAP_AUTO_LIMIT_SIZE * ONE_MEG;
- nom = (int)(physmem / 512) / 2;
+ nom = (int)(physmem / 512) / 8;
sz = nom + (def - nom) * perc / 100;
}
swap_chunk = Create_Chunk_DWIM(label_chunk_info[here].c->disk,