Fix RAM slider megabyte calculation.

This commit is contained in:
Daniel Scalzi 2023-04-05 19:18:29 -04:00
parent 22d2e064f3
commit 9e26b288fc
No known key found for this signature in database
GPG Key ID: 9E3E2AFE45328AA5

View File

@ -215,7 +215,7 @@ function saveSettingsValues(){
if(cVal === 'MinRAM' || cVal === 'MaxRAM'){
let val = Number(v.getAttribute('value'))
if(val%1 > 0){
val = val*1000 + 'M'
val = val*1024 + 'M'
} else {
val = val + 'G'
}