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:
parent
71573b78d1
commit
0a14567776
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user