forked from science-ation/science-ation
Add he min teams requirement to the check too, not just the scheduler
This commit is contained in:
parent
14e93e0c12
commit
7451483ddf
@ -102,6 +102,7 @@ function judges_scheduler_check_judges()
|
|||||||
$jdiv_id = $keys[$k];
|
$jdiv_id = $keys[$k];
|
||||||
$c = $jdiv[$jdiv_id]['num_projects'];
|
$c = $jdiv[$jdiv_id]['num_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'];
|
||||||
$jdiv[$jdiv_id]['num_jteams'] = $t;
|
$jdiv[$jdiv_id]['num_jteams'] = $t;
|
||||||
$totalteams+=$t;
|
$totalteams+=$t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user