Add Ram Usage Detector
This commit is contained in:
committed by
Sheepit Renderfarm
parent
2e46685068
commit
1969f57da3
@@ -247,7 +247,7 @@ public class Worker {
|
||||
|
||||
if (max_ram != null) {
|
||||
try {
|
||||
config.setMaxMemory(Utils.parseNumber(max_ram) / 1000); // internal value are in kB
|
||||
config.setMaxAllowedMemory(Utils.parseNumber(max_ram) / 1024); // internal value is in KiB
|
||||
}
|
||||
catch (java.lang.IllegalStateException e) {
|
||||
System.err.println(
|
||||
|
||||
Reference in New Issue
Block a user