mirror of https://github.com/BOINC/boinc.git
- validator: canonical_credit was being set incorrectly
when -max_granted_credit used. svn path=/trunk/boinc/; revision=15196
This commit is contained in:
parent
929d75eedb
commit
9e392c2c46
|
@ -3946,3 +3946,11 @@ David May 13 2008
|
||||||
user.inc
|
user.inc
|
||||||
languages/translations/
|
languages/translations/
|
||||||
en.po
|
en.po
|
||||||
|
|
||||||
|
David May 13 2008
|
||||||
|
- validator: canonical_credit was being set incorrectly
|
||||||
|
when -max_granted_credit used.
|
||||||
|
|
||||||
|
sched/
|
||||||
|
sched_send.C
|
||||||
|
validator.C
|
||||||
|
|
|
@ -250,7 +250,6 @@ double max_allowable_disk(SCHEDULER_REQUEST& req, SCHEDULER_REPLY& reply) {
|
||||||
if (prefs.disk_max_used_pct == 0) {
|
if (prefs.disk_max_used_pct == 0) {
|
||||||
prefs.disk_max_used_pct = config.default_disk_max_used_pct;
|
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) {
|
if (prefs.disk_min_free_gb < config.default_disk_min_free_gb) {
|
||||||
prefs.disk_min_free_gb = config.default_disk_min_free_gb;
|
prefs.disk_min_free_gb = config.default_disk_min_free_gb;
|
||||||
}
|
}
|
||||||
|
|
|
@ -422,6 +422,9 @@ int handle_wu(
|
||||||
if (credit_from_wu) {
|
if (credit_from_wu) {
|
||||||
credit = get_credit_from_wu(wu, results);
|
credit = get_credit_from_wu(wu, results);
|
||||||
}
|
}
|
||||||
|
if (max_granted_credit && credit>max_granted_credit) {
|
||||||
|
credit = max_granted_credit;
|
||||||
|
}
|
||||||
|
|
||||||
// scan results.
|
// scan results.
|
||||||
// update as needed, and count the # of results
|
// update as needed, and count the # of results
|
||||||
|
|
Loading…
Reference in New Issue