diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -166,7 +166,7 @@ if(gotframe ==1) _distren_asprintf(&pathtoTar, "%s/stor/jobdata/job%d.tar.gz", datadir, jobnum); // Prepares destination to save to _distren_asprintf(&pathtoJobfile, "%s/%s/job.blend", datadir, jobdatapath ); // Prepares the path to the jobfile - _distren_asprintf(&urltoOutput, "http://protofusion.org/distren/stor/job%d/output/", jobdatapath ); // Prepares the URL where output is posted + _distren_asprintf(&urltoOutput, "http://protofusion.org/distren/stor/tmp/", jobdatapath ); // Prepares the URL where output is posted _distren_asprintf(&pathtoXml, "%s/job%d/job%d.xml",datadir, jobnum ); // Prepares the path to the job's XML file // Downloads the job tar if it isn't present. @TODO: Delete old job data @@ -207,7 +207,7 @@ if(gotframe ==1) /* Variable-fillers which require XML */ outputExt = myjob->output_format; /* @TODO: FIXME! */ - _distren_asprintf(&pathtoOutput, "%s/job%d/output/frame%d.%s", datadir, jobnum, framenum, outputExt ); // Prepares the path to the jobfile + _distren_asprintf(&pathtoOutput, "%s/job%d/output/job%d-frame%d.%s", datadir, jobnum, jobnum, framenum, outputExt ); // Prepares the path to the jobfile /** Series of IF's for jobtype based on xml content */ @@ -227,8 +227,6 @@ if(gotframe ==1) // When blender is finished, run this... if(busy==2){ fprintf(stderr, "Finished frame %d in job %d, uploading...",framenum,jobnum); - char *outputurl; - _distren_asprintf(&outputurl, "http://protofusion.org/distren/stor/job%d/",jobnum); // Aggregates the output url curlpost(pathtoOutput, urltoOutput); // uploads (HTML POST) the output at outputpath to the server at outputurl tell_the_server(DISTREN_REQUEST_DONEFRAME); // Tells the server that it's finished rendering this frame busy=0;