From 4ce44f48b6a6f59c2236593b90328ecb9d1abc09 Mon Sep 17 00:00:00 2001 From: iboyeau Date: Mon, 13 Mar 2023 14:59:53 +0100 Subject: [PATCH] Wip maj (correct error) roundRobin --- src/main/java/fr/ntr/scheduler/RoundRobin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/ntr/scheduler/RoundRobin.java b/src/main/java/fr/ntr/scheduler/RoundRobin.java index 920e5b9..4790b24 100644 --- a/src/main/java/fr/ntr/scheduler/RoundRobin.java +++ b/src/main/java/fr/ntr/scheduler/RoundRobin.java @@ -62,7 +62,7 @@ public class RoundRobin extends Scheduler { // } //} - index = Ts * Sp; + index = (Ts + 1) * (Sp + 1); return Users.get(index%(Users.size() - 1)); }