Not incrementing nsent correctly

svn path=/trunk/boinc/; revision=5114
This commit is contained in:
Bruce Allen 2005-01-13 23:24:49 +00:00
parent f3d6116223
commit b3ca6c771c
1 changed files with 8 additions and 6 deletions

View File

@ -371,16 +371,18 @@ static int send_results_for_file(
// since it is for WU A, and since the host has already
// gotten a result for WU A, it's infeasible. So I think
// this is only wacky if !one_wu_per_result_per_host.
if (retval_send && !config.one_result_per_user_per_wu) {
log_messages.printf(SCHED_MSG_LOG::CRITICAL,
"Database inconsistency? possibly_send_result(%d) failed for [RESULT#%d], returning %d\n", i, result.id, retval_send
if (!retval_send) {
nsent++;
} else if (!config.one_result_per_user_per_wu) {
log_messages.printf(SCHED_MSG_LOG::CRITICAL,
"Database inconsistency? possibly_send_result(%d) failed for [RESULT#%d], returning %d\n", i, result.id, retval_send
);
}
else {
nsent++;
}
prev_result = result;
} // query_retval
} // loop over 0<i<100
return 0;
}