From a186d99c8062b43cb9d2461de41822549a5f13e5 Mon Sep 17 00:00:00 2001 From: Amaury Carrade Date: Tue, 5 Nov 2019 17:14:23 +0100 Subject: [PATCH] Fixed invalid yes percentage calculation. --- src/main/java/fr/zcraft/VoteBan/votes/Vote.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/zcraft/VoteBan/votes/Vote.java b/src/main/java/fr/zcraft/VoteBan/votes/Vote.java index 257af77..19bdd0a 100755 --- a/src/main/java/fr/zcraft/VoteBan/votes/Vote.java +++ b/src/main/java/fr/zcraft/VoteBan/votes/Vote.java @@ -111,7 +111,7 @@ public int getVotersCount() public double getYesPercentage() { - return votesYes.size() / getVotersCount(); + return (float) votesYes.size() / (float) getVotersCount(); } private void separator()