Skip to content
Snippets Groups Projects
Commit 3442dd36 authored by uhensler's avatar uhensler
Browse files

OO-4520: Return rate in survey report figures are not properly calculated

parent dcefdf01
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ public class EvaluationFormOverviewController extends BasicController {
long numOfDoneSessions = statistic.getNumOfDoneSessions();
if (figures != null && figures.getNumberOfParticipations() != null) {
double percent = figures.getNumberOfParticipations() > 0
? numOfDoneSessions / figures.getNumberOfParticipations() * 100.0d
? (double)numOfDoneSessions / figures.getNumberOfParticipations() * 100.0d
: 0.0;
long percentRounded = Math.round(percent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment