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:
Laurent Clouet
2015-05-26 20:20:54 +01:00
parent 7962369ddb
commit c6e2a72ab2
3 changed files with 14 additions and 2 deletions

View File

@@ -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;
}