From b3ca6c771ca5922d8fb7152d24c73169c3b31827 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Thu, 13 Jan 2005 23:24:49 +0000 Subject: [PATCH] Not incrementing nsent correctly svn path=/trunk/boinc/; revision=5114 --- sched/sched_locality.C | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sched/sched_locality.C b/sched/sched_locality.C index 7a8d944438..6f62b8b262 100644 --- a/sched/sched_locality.C +++ b/sched/sched_locality.C @@ -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