Fix RAM slider megabyte calculation.

pull/294/head
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
1 changed files with 1 additions and 1 deletions

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'
}