Bugfix: store the number of cpu cores on Job object because it might be changed by the user between the start and end of render
This commit is contained in:
@@ -26,6 +26,7 @@ public class RenderProcess {
|
||||
private long end;
|
||||
private int remainingDuration;
|
||||
private long memoryUsed; // in kB
|
||||
private int coresUsed;
|
||||
private Process process;
|
||||
|
||||
public RenderProcess() {
|
||||
@@ -33,6 +34,7 @@ public class RenderProcess {
|
||||
start = -1;
|
||||
end = -1;
|
||||
memoryUsed = 0;
|
||||
coresUsed = 0;
|
||||
remainingDuration = 0;
|
||||
}
|
||||
|
||||
@@ -44,6 +46,14 @@ public class RenderProcess {
|
||||
return memoryUsed;
|
||||
}
|
||||
|
||||
public void setCoresUsed(int val) {
|
||||
coresUsed = val;
|
||||
}
|
||||
|
||||
public int getCoresUsed() {
|
||||
return coresUsed;
|
||||
}
|
||||
|
||||
public long getStartTime() {
|
||||
return start;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user