- validator: canonical_credit was being set incorrectly

when -max_granted_credit used.

svn path=/trunk/boinc/; revision=15196
This commit is contained in:
David Anderson 2008-05-13 22:08:52 +00:00
parent 929d75eedb
commit 9e392c2c46
3 changed files with 11 additions and 1 deletions

View File

@ -3946,3 +3946,11 @@ David May 13 2008
user.inc
languages/translations/
en.po
David May 13 2008
- validator: canonical_credit was being set incorrectly
when -max_granted_credit used.
sched/
sched_send.C
validator.C

View File

@ -250,7 +250,6 @@ double max_allowable_disk(SCHEDULER_REQUEST& req, SCHEDULER_REPLY& reply) {
if (prefs.disk_max_used_pct == 0) {
prefs.disk_max_used_pct = config.default_disk_max_used_pct;
}
// Always leave some disk space free
if (prefs.disk_min_free_gb < config.default_disk_min_free_gb) {
prefs.disk_min_free_gb = config.default_disk_min_free_gb;
}

View File

@ -422,6 +422,9 @@ int handle_wu(
if (credit_from_wu) {
credit = get_credit_from_wu(wu, results);
}
if (max_granted_credit && credit>max_granted_credit) {
credit = max_granted_credit;
}
// scan results.
// update as needed, and count the # of results