no message

svn path=/trunk/boinc/; revision=1251
This commit is contained in:
Eric Heien 2003-05-28 18:29:42 +00:00
parent 2527851c5e
commit 3956a3cfdf
1 changed files with 6 additions and 4 deletions

View File

@ -606,10 +606,12 @@ int WORKUNIT::parse(FILE* in) {
strcpy(env_vars, ""); strcpy(env_vars, "");
app = NULL; app = NULL;
project = NULL; project = NULL;
rsc_fpops = 0; // Default these to very large values (1 week on a 1 cobblestone machine)
rsc_iops = 0; // so we don't keep asking the server for more work
rsc_memory = 0; rsc_fpops = 1e9*SECONDS_PER_DAY*7;
rsc_disk = 0; rsc_iops = 1e9*SECONDS_PER_DAY*7;
rsc_memory = 4e9*SECONDS_PER_DAY*7;
rsc_disk = 1024*1024*1024; // 1 GB
while (fgets(buf, 256, in)) { while (fgets(buf, 256, in)) {
if (match_tag(buf, "</workunit>")) return 0; if (match_tag(buf, "</workunit>")) return 0;
else if (parse_str(buf, "<name>", name, sizeof(name))) continue; else if (parse_str(buf, "<name>", name, sizeof(name))) continue;