If a jdiv has no projects, then it definitely doesnt need any judging teams to judge those 0 projects

This commit is contained in:
james 2008-09-16 18:44:25 +00:00
parent de185f07f4
commit bed8cc9d9e

View File

@ -121,7 +121,7 @@ function judges_scheduler_check_judges()
$jdiv_id = $keys[$k];
$c = $jdiv[$jdiv_id]['num_projects'];
$t=ceil($c/$config['max_projects_per_team']*$config['times_judged']);
if($t < $config['times_judged']) $t = $config['times_judged'];
if($t < $config['times_judged'] && $c>0) $t = $config['times_judged'];
$jdiv[$jdiv_id]['num_jteams'] = $t;
$totalteams+=$t;