When calling project-provided validator functions, populate the

WU.rsc_fpops_est field. This can be useful in
determining how much credit to assign, and preventing cheating.

DAVID: I was going to be a good guy and document this, but you
forgot to check validate_simple.php and validate_advanced.php
into CVS (:-).

svn path=/trunk/boinc/; revision=10297
This commit is contained in:
Bruce Allen 2006-06-10 12:14:22 +00:00
parent be52784849
commit 086c94a309
2 changed files with 17 additions and 2 deletions

View File

@ -5780,3 +5780,16 @@ David 9 June 2006
client_state.C,h
lib/
shmem.C
Bruce 10 June 2006
- When calling project-provided validator functions, populate the
WU.rsc_fpops_est field. This can be useful in
determining how much credit to assign, and preventing cheating.
DAVID: I was going to be a good guy and document this, but you
forgot to check validate_simple.php and validate_advanced.php
into CVS (:-).
sched/
boinc_db.C

View File

@ -1054,6 +1054,7 @@ void VALIDATOR_ITEM::parse(MYSQL_ROW& r) {
wu.target_nresults = atoi(r[i++]);
wu.max_success_results = atoi(r[i++]);
wu.error_mask = atoi(r[i++]);
wu.rsc_fpops_est = atof(r[i++]);
res.id = atoi(r[i++]);
strcpy2(res.name, r[i++]);
@ -1111,6 +1112,7 @@ int DB_VALIDATOR_ITEM_SET::enumerate(
" wu.target_nresults, "
" wu.max_success_results, "
" wu.error_mask, "
" wu.rsc_fpops_est, "
" res.id, "
" res.name, "
" res.validate_state, "