installer: mongodb requires at least 0.25G cache

pull/545/head
undefined 2 years ago
parent 560e7c627f
commit e233bbb4cf
No known key found for this signature in database

@ -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群"',

Loading…
Cancel
Save