Make config file loader take ram in MB for consistency

When passed as inline parameters, memory is expressed as MB. However, when passed in a config file, memory was expressed as KB. This created confusion

https://discordapp.com/channels/253355867938750485/301912419368697856/541719192252973066
https://discordapp.com/channels/253355867938750485/301912419368697856/541719244094701597
https://discordapp.com/channels/253355867938750485/301912419368697856/541719343684124696
This commit is contained in:
Finn Bear
2019-02-03 13:07:12 -08:00
committed by GitHub
parent d2d5dffd3e
commit 9d074974b6

View File

@@ -84,7 +84,7 @@ public class SettingsLoader {
cores = String.valueOf(cores_);
}
if (maxRam_ > 0) {
ram = String.valueOf(maxRam_);
ram = String.valueOf(maxRam_ * 1000);
}
if (maxRenderTime_ > 0) {
renderTime = String.valueOf(maxRenderTime_);