Add Ram Usage Detector

This commit is contained in:
DaCool
2021-11-16 14:51:53 +00:00
committed by Sheepit Renderfarm
parent 2e46685068
commit 1969f57da3
9 changed files with 67 additions and 58 deletions

View File

@@ -524,8 +524,8 @@ public class SettingsLoader {
config.setNbCores(Integer.parseInt(cores.getValue()));
}
if (config.getMaxMemory() == -1 && ram != null) {
config.setMaxMemory(Utils.parseNumber(ram.getValue()) / 1000); // internal ram value is in kB
if (config.getMaxAllowedMemory() == -1 && ram != null) {
config.setMaxAllowedMemory(Utils.parseNumber(ram.getValue()) / 1024); // internal ram value is in KiB
}
if (config.getMaxRenderTime() == -1 && renderTime != null) {