# HG changeset patch # User ethanzonca # Date 2009-09-03 22:13:05 # Node ID b69c120bacd25ef359d0e0dd6c9555034e503b1a # Parent 52ec1f76eeb760204fcec5cb5e8bd5fc8aaa6abc Fixed backwards implementation diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -159,7 +159,9 @@ if(gotframe ==1) // Downloads the job tar if it isn't present. @TODO: Delete old job data struct stat buffer; int fstatus = stat(pathtoJobfile, &buffer); - if(fstatus != -1){ + + // If stat'ing the jobfile shows that the jobfile doesn't exist, we'll download it. + if(fstatus == -1){ // Downloads the Tar @TODO: add progress bar if( curlget(urltoTar, pathtoTar) == 0){ fprintf(stderr, "File downloaded without errors\n");