diff --git a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/services/PartieKahootService.java b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/services/PartieKahootService.java index 80e681d..f861da6 100644 --- a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/services/PartieKahootService.java +++ b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/services/PartieKahootService.java @@ -129,7 +129,7 @@ public class PartieKahootService { Calendar actualDate = Calendar.getInstance(); actualDate.setTime(new Date()); long secondsPourRepondre = ChronoUnit.SECONDS.between(actualDate.toInstant(), tempsLimiteReponse.toInstant()); - return Math.round(1f/secondsPourRepondre*PartieKahootService.TEMPS_REPONSE_QUESTION); + return Math.round((1f/secondsPourRepondre*PartieKahootService.TEMPS_REPONSE_QUESTION)*100); } }