From 3c1b433c20d999a56db96366b9b19324ee87e3cd Mon Sep 17 00:00:00 2001 From: gombasg Date: Mon, 15 Sep 2008 12:49:18 +0000 Subject: [PATCH] Set the number of initial replicas to be the same as the min. quorum in order not to penalize the case when all the initial replicas are validated as good git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1831 a7169a2c-3604-0410-bc95-c702d8d87f7a --- dcapi/boinc/wu.C | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dcapi/boinc/wu.C b/dcapi/boinc/wu.C index d3f0d98796..370272b30b 100644 --- a/dcapi/boinc/wu.C +++ b/dcapi/boinc/wu.C @@ -826,13 +826,9 @@ static void fill_wu_params(const DC_Workunit *wu, struct wu_params *params) if (params->min_quorum < 1) params->min_quorum = 1; - /* Calculate with logarithmic error */ - if (params->min_quorum == 1) - params->target_nresults = 1; - else - params->target_nresults = params->min_quorum + - (int)log(params->min_quorum); + params->target_nresults = params->min_quorum; + /* Calculate with logarithmic error */ params->max_error_results = params->target_nresults + (int)log(params->min_quorum + 2) + 1; params->max_total_results = (params->target_nresults +