diff options
author | msquare <msquare@notrademark.de> | 2019-08-19 10:19:27 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-08-19 10:19:27 +0200 |
commit | 89ca2bb39894342ea91efab54d47b68a9a846411 (patch) | |
tree | 5cb3da87dba3d307d2afdaef1098bff74c9b1be8 /includes | |
parent | 4d6a006d3d88569c9792340dea9ddcfc4706875d (diff) |
better bar min calculation
Diffstat (limited to 'includes')
-rw-r--r-- | includes/view/Shifts_view.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php index 01dc1561..464c8810 100644 --- a/includes/view/Shifts_view.php +++ b/includes/view/Shifts_view.php @@ -197,7 +197,7 @@ function Shift_view_render_needed_angeltype($needed_angeltype, $angeltypes, $shi $needed_angels .= '<h3>' . AngelType_name_render($angeltype) . '</h3>'; $bar_max = max($needed_angeltype['count'] * 10, $needed_angeltype['taken'] * 10, 10); - $bar_value = max(1, $needed_angeltype['taken'] * 10); + $bar_value = max(bar_max/5, $needed_angeltype['taken'] * 10); $needed_angels .= progress_bar( 0, $bar_max, |