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)); }