We must have a number of judging teams at least equal to the number

of times a project must be judged, to avoid assigning the same jteam to
the same project
This commit is contained in:
dave 2006-08-11 01:11:14 +00:00
parent 58e1b4a05e
commit 6d6dd8abb1

View File

@ -279,6 +279,7 @@ for($k=0; $k<count($keys); $k++) {
$jdiv_id = $keys[$k]; $jdiv_id = $keys[$k];
$c = count($jdiv[$jdiv_id]['projects']); $c = count($jdiv[$jdiv_id]['projects']);
$t=ceil($c/$data['max_projects_per_team']*$data['times_judged']); $t=ceil($c/$data['max_projects_per_team']*$data['times_judged']);
if($t < $data['times_judged']) $t = $data['times_judged'];
TRACE(" $jdiv_id has $c projects, requires $t judging teams\n"); TRACE(" $jdiv_id has $c projects, requires $t judging teams\n");
$jdiv[$jdiv_id]['num_jteams'] = $t; $jdiv[$jdiv_id]['num_jteams'] = $t;
} }