mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
installer: mongodb requires at least 0.25G cache
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -242,7 +242,8 @@ function rollbackResolveField() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const mem = os.totalmem() / 1024 / 1024 / 1024; // In GiB
|
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 = [
|
const printInfo = [
|
||||||
'echo "扫码加入QQ群:"',
|
'echo "扫码加入QQ群:"',
|
||||||
|
|||||||
Reference in new issue
Block a user