Add Ram Usage Detector
This commit is contained in:
committed by
Sheepit Renderfarm
parent
2e46685068
commit
1969f57da3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user