Skip to content

Commit

Permalink
Fix RAM slider megabyte calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed Apr 5, 2023
1 parent 22d2e06 commit 9e26b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/js/scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit 9e26b28

Please sign in to comment.