From 9e26b288fcd9b476c37cd0b2fadd6765c62a97bf Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Wed, 5 Apr 2023 19:18:29 -0400 Subject: [PATCH] Fix RAM slider megabyte calculation. --- app/assets/js/scripts/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/js/scripts/settings.js b/app/assets/js/scripts/settings.js index 8c13c02f1c..0b5f3227fb 100644 --- a/app/assets/js/scripts/settings.js +++ b/app/assets/js/scripts/settings.js @@ -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' }