diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -129,6 +129,7 @@ char *pathtoXml; // Full path to the char *pathtoOutput; // Full path to the output (rendered) file char *outputExt; // Output Extension (e.g., JPG) +int threads = sysconf(_SC_NPROCESSORS_ONLN); // Equals the number of currently online processors struct distrenjob *myjob; // Structure to hold data gathered from the XML file // If the slave is getting job info... @@ -197,7 +198,10 @@ if(gotframe ==1) _distren_asprintf(&pathtoOutput, "%s/job%d/output/frame%d.%s", datadir, jobnum, framenum, outputExt ); // Prepares the path to the jobfile - exec_blender(myjob, pathtoJobfile, pathtoOutput, framenum); // @TODO: This warning should be fixed :D + /** Series of IF's for jobtype based on xml content */ + if(1==1){ + exec_blender(myjob, pathtoJobfile, pathtoOutput, framenum, threads); // @TODO: This warning should be fixed :D + } // Consider placing the following in the exec_blender() function while(busy == 1){