From e90ad765107f2327988656d71ef5ea097e946ccd Mon Sep 17 00:00:00 2001 From: iboyeau Date: Fri, 17 Mar 2023 10:28:07 +0100 Subject: [PATCH] List packet set roundRobin (to verify) --- src/main/java/fr/ntr/scheduler/RoundRobin.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/ntr/scheduler/RoundRobin.java b/src/main/java/fr/ntr/scheduler/RoundRobin.java index 2e806fe..163e1c0 100644 --- a/src/main/java/fr/ntr/scheduler/RoundRobin.java +++ b/src/main/java/fr/ntr/scheduler/RoundRobin.java @@ -38,8 +38,9 @@ public class RoundRobin extends Scheduler { users.remove(index); }else{ - //sub the packet send need Set packet - users.get(index).getPacketsToSend(); + //TO Verify sub the packet send need Set packet + users.get(index).getPacketsSent().add(users.get(index).getPacketsToSend().get(0)); + users.get(index).getPacketsToSend().remove(users.get(index).getPacketsToSend().get(0)); } frame[Ts][Sp].setUser(UserSelection(Ts, Sp, users));