From 086c94a30919a9e7ec953de9a3e8c02fe63cbfc5 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 10 Jun 2006 12:14:22 +0000 Subject: [PATCH] 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 --- checkin_notes | 13 +++++++++++++ db/boinc_db.C | 6 ++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index ebe4ad5d39..e0e50ac5ef 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 + diff --git a/db/boinc_db.C b/db/boinc_db.C index 40900a40e1..7b520dc2b4 100644 --- a/db/boinc_db.C +++ b/db/boinc_db.C @@ -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++]); @@ -1109,8 +1110,9 @@ int DB_VALIDATOR_ITEM_SET::enumerate( " wu.opaque, " " wu.batch, " " wu.target_nresults, " - " wu.max_success_results," - " wu.error_mask," + " wu.max_success_results, " + " wu.error_mask, " + " wu.rsc_fpops_est, " " res.id, " " res.name, " " res.validate_state, "