Skip to content

Commit

Permalink
Fixed invalid yes percentage calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauryCarrade committed Nov 5, 2019
1 parent 640385b commit a186d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/zcraft/VoteBan/votes/Vote.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public int getVotersCount()

public double getYesPercentage()
{
return votesYes.size() / getVotersCount();
return (float) votesYes.size() / (float) getVotersCount();
}

private void separator()
Expand Down

0 comments on commit a186d99

Please sign in to comment.