diff --git a/src/main/java/fr/ntr/scheduler/MaxSNR.java b/src/main/java/fr/ntr/scheduler/MaxSNR.java index 0fc7211..9b7fd3a 100644 --- a/src/main/java/fr/ntr/scheduler/MaxSNR.java +++ b/src/main/java/fr/ntr/scheduler/MaxSNR.java @@ -16,13 +16,12 @@ public class MaxSNR extends Scheduler { for(int ts = 0; ts < 2; ts++){ for(int sp = 0; sp < 100; sp++){ userMax = selectionUtilisateur(sp, ts, users); + userMax.getPacketsSent().add(userMax.getPacketsToSend().get(0)); + userMax.getPacketsToSend().remove(userMax.getPacketsToSend().get(0)); + frame[ts][sp].setUser(selectionUtilisateur(sp, ts, users)); if (userMax.getPacketsToSend() == null) { users.remove(userMax); - }else{ - //sub the packet send need Set packet - userMax.getPacketsToSend(); } - frame[ts][sp].setUser(selectionUtilisateur(sp, ts, users)); } } }