- client: if project-supplied backoff > 28 days, cap rather than ignore

svn path=/trunk/boinc/; revision=19078
This commit is contained in:
David Anderson 2009-09-17 16:46:21 +00:00
parent 58c8479abb
commit 317b76054c
2 changed files with 10 additions and 4 deletions

View File

@ -7772,7 +7772,7 @@ David 16 Sept 2009
client/
log_flags.cpp,h
schedule_op.cpp
scheduler_op.cpp
Charlie 17 Sept 2009
- Mac installer: create a new command-line tool AddRemoveUser to add users
@ -7786,3 +7786,9 @@ Charlie 17 Sept 2009
mac_build/
boinc.xcodeproj/
project.pbxproj
David 17 Sept 2009
- client: if project-supplied backoff > 28 days, cap rather than ignore
client/
scheduler_op.cpp

View File

@ -834,15 +834,15 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) {
if (!retval) auto_update.present = true;
#endif
} else if (parse_double(buf, "<cpu_backoff>", cpu_backoff)) {
if (cpu_backoff > 28*SECONDS_PER_DAY) cpu_backoff = 0;
if (cpu_backoff > 28*SECONDS_PER_DAY) cpu_backoff = 28*SECONDS_PER_DAY;
if (cpu_backoff < 0) cpu_backoff = 0;
continue;
} else if (parse_double(buf, "<cuda_backoff>", cuda_backoff)) {
if (cuda_backoff > 28*SECONDS_PER_DAY) cuda_backoff = 0;
if (cuda_backoff > 28*SECONDS_PER_DAY) cuda_backoff = 28*SECONDS_PER_DAY;
if (cuda_backoff < 0) cuda_backoff = 0;
continue;
} else if (parse_double(buf, "<ati_backoff>", ati_backoff)) {
if (ati_backoff > 28*SECONDS_PER_DAY) ati_backoff = 0;
if (ati_backoff > 28*SECONDS_PER_DAY) ati_backoff = 28*SECONDS_PER_DAY;
if (ati_backoff < 0) ati_backoff = 0;
continue;
} else if (match_tag(buf, "<!--")) {