better bar min calculation
This commit is contained in:
parent
7d82103762
commit
53ec14b9c4
|
@ -197,7 +197,7 @@ function Shift_view_render_needed_angeltype($needed_angeltype, $angeltypes, $shi
|
||||||
|
|
||||||
$needed_angels .= '<h3>' . AngelType_name_render($angeltype) . '</h3>';
|
$needed_angels .= '<h3>' . AngelType_name_render($angeltype) . '</h3>';
|
||||||
$bar_max = max($needed_angeltype['count'] * 10, $needed_angeltype['taken'] * 10, 10);
|
$bar_max = max($needed_angeltype['count'] * 10, $needed_angeltype['taken'] * 10, 10);
|
||||||
$bar_value = max($bar_max/5, $needed_angeltype['taken'] * 10);
|
$bar_value = max($bar_max/10, $needed_angeltype['taken'] * 10);
|
||||||
$needed_angels .= progress_bar(
|
$needed_angels .= progress_bar(
|
||||||
0,
|
0,
|
||||||
$bar_max,
|
$bar_max,
|
||||||
|
|
Loading…
Reference in New Issue