# HG changeset patch # User Mike Becker # Date 1602754963 -7200 # Node ID 4148e6de0f21177acff40331831ff1ccc19510b7 # Parent decc4c3854a1568701617a3a49bf2a557db47eda fixes progress percentages always floored resulting in 1% open even if there are no open issues diff -r decc4c3854a1 -r 4148e6de0f21 src/main/java/de/uapcore/lightpit/entities/IssueSummary.java --- a/src/main/java/de/uapcore/lightpit/entities/IssueSummary.java Fri Oct 09 19:14:40 2020 +0200 +++ b/src/main/java/de/uapcore/lightpit/entities/IssueSummary.java Thu Oct 15 11:42:43 2020 +0200 @@ -39,12 +39,12 @@ public int getActivePercent() { int total = getTotal(); - return total > 0 ? 100*active/total : 0; + return total > 0 ? Math.round(100.f*active/total) : 0; } public int getDonePercent() { int total = getTotal(); - return total > 0 ? 100*done/total : 100; + return total > 0 ? Math.round(100.f*done/total) : 100; } /**