mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 03:32:12 -08:00
Fix RAM slider megabyte calculation.
This commit is contained in:
parent
22d2e064f3
commit
9e26b288fc
@ -215,7 +215,7 @@ function saveSettingsValues(){
|
|||||||
if(cVal === 'MinRAM' || cVal === 'MaxRAM'){
|
if(cVal === 'MinRAM' || cVal === 'MaxRAM'){
|
||||||
let val = Number(v.getAttribute('value'))
|
let val = Number(v.getAttribute('value'))
|
||||||
if(val%1 > 0){
|
if(val%1 > 0){
|
||||||
val = val*1000 + 'M'
|
val = val*1024 + 'M'
|
||||||
} else {
|
} else {
|
||||||
val = val + 'G'
|
val = val + 'G'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user