1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-09-11 18:27:21 +03:00

refactor: round up total RAM on check script

This commit is contained in:
louistiti 2023-04-30 10:13:41 +08:00
parent 71573b78d1
commit 0a14567776
No known key found for this signature in database
GPG Key ID: 92CD6A2E497E1669

View File

@ -144,7 +144,7 @@ dotenv.config()
}
const totalRAMInGB = SystemHelper.getTotalRAM()
if (totalRAMInGB < minimumRequiredRAM) {
if (Math.round(totalRAMInGB) < minimumRequiredRAM) {
report.can_run.v = false
LogHelper.error(
`Total RAM: ${totalRAMInGB} GB. Leon needs at least ${minimumRequiredRAM} GB of RAM`