*** empty log message ***

svn path=/trunk/boinc/; revision=5998
This commit is contained in:
David Anderson 2005-05-02 20:32:36 +00:00
parent 13d1f435d3
commit ce262dc036
2 changed files with 13 additions and 1 deletions

View File

@ -5960,3 +5960,8 @@ Bruce 1 May 2005
util.C
util.h
David 2 May 2005
- bug fix for intermediate upload feature
client/
app.C

View File

@ -523,6 +523,7 @@ void ACTIVE_TASK_SET::report_overdue(double now) {
int ACTIVE_TASK::handle_upload_files() {
std::string filename;
char buf[256], path[256];
int retval;
DirScanner dirscan(slot_dir);
while (dirscan.scan(filename)) {
@ -531,7 +532,13 @@ int ACTIVE_TASK::handle_upload_files() {
char* p = buf+strlen(UPLOAD_FILE_REQ_PREFIX);
FILE_INFO* fip = result->lookup_file_logical(p);
if (fip) {
fip->status = FILE_PRESENT;
get_pathname(fip, path);
retval = md5_file(path, fip->md5_cksum, fip->nbytes);
if (retval) {
fip->status = retval;
} else {
fip->status = FILE_PRESENT;
}
} else {
msg_printf(0, MSG_ERROR, "Can't find %s", p);
}