installer: mongodb requires at least 0.25G cache

This commit is contained in:
undefined committed 2023-03-22 23:18:26 +08:00
1 parent 560e7c627f
commit e233bbb4cf
1 file changed
+2 -1
+2 -1
View File
@@ -242,7 +242,8 @@ function rollbackResolveField() {
}
const mem = os.totalmem() / 1024 / 1024 / 1024; // In GiB
const wtsize = Math.floor((mem / 6) * 10) / 10;
// TODO: refuse to install if mem < 1.5
const wtsize = Math.max(0.25, Math.floor((mem / 6) * 100) / 100);
const printInfo = [
'echo "扫码加入QQ群:"',