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

@@ -622,8 +622,9 @@ public class Client {
protected Error.Type confirmJob(Job ajob) {
String extras_config = "";
if (this.config.getNbCores() > 0) {
extras_config = "&cores=" + this.config.getNbCores();
RenderProcess process = ajob.getProcessRender();
if (process != null && process.getCoresUsed() > 0) {
extras_config = "&cores=" + process.getCoresUsed();
}
String url_real = String.format("%s?job=%s&frame=%s&rendertime=%d&revision=%s&memoryused=%s&extras=%s%s", this.server.getPage("validate-job"), ajob.getId(), ajob.getFrameNumber(), ajob.getProcessRender().getDuration(), ajob.getRevision(), ajob.getProcessRender().getMemoryUsed(), ajob.getExtras(), extras_config);