Changeset - 157b965b9e2d
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-08-03 21:19:34

Horribleness
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/server/slave.c
Show inline comments
 
@@ -112,13 +112,13 @@ options_init(argc,argv,&my_cfg, myopts, 
 
int jobnum;   // Filled by the server telling the client what to render
 
int framenum; // same as above
 
int gotframe; // set this to 1 after data for a job is received from the server
 

	
 
int busy = 0;     // Client business 1=busy 0=idle
 

	
 
char *outputpath = DATAPATH "/stor/jobdata/output.jpg";
 
char *pathtoOutput;
 

	
 

	
 
char *urltoTar;  // Full URL to the server-side location of job#.tgz
 
char *pathtoTar; // Full path to the location of the job#.tgz
 

	
 
char *pathtoJobfile; // Full path to the job's main file
 
@@ -130,13 +130,13 @@ char *pathtoJobfile; // Full path to the
 

	
 
		/* Variable Preparation */
 
		_distren_asprintf(&urltoTar, "http://protofusion.org/distren/stor/job%d.tgz",jobnum); // Prepares URL to download from
 
		_distren_asprintf(&pathtoTar, DATAPATH "/stor/jobdata/job%d.tgz", jobnum); // Prepares destination to save to
 

	
 
		_distren_asprintf(&pathtoJobfile, DATAPATH "%s/job.blend", jobdatapath ); // Prepares the path to the jobfile
 

	
 
		 = DATAPATH "/stor/jobdata/output.jpg";
 

	
 
		//  Download the data
 

	
 
		curlget(jobdataurl, pathtoTar); // Downloads the Tar @TODO: add a progressbar
 

	
 
		exec("tar -xvf" jobdatatar, /tmp/distren/job%d',jobnum,jobnum); // @TODO: How will we do this?
0 comments (0 inline, 0 general)