Cap required release candidates needed

This commit is contained in:
Jay Trees 2022-04-08 16:36:08 +02:00
parent 92555c7c47
commit c049d942e9

View file

@ -342,7 +342,16 @@ $page->navigation();
WHERE ' . $user_is_active . ';')
->fetch();
$count_users = reset($count_users);
$count_users_needed = max(1, round($count_users * 0.05, 0));
$count_users_needed_minimum = 1;
$count_users_needed_maximum = 100;
$count_users_needed = min(
$count_users_needed_maximum,
max(
$count_users_needed_minimum,
round($count_users * 0.05, 0)
)
);
$count_users_rc = $database
->query('SELECT COUNT(`id`)