From d7517d4226f98bb0a1b28617932f370faf3b88d0 Mon Sep 17 00:00:00 2001 From: Tr1xt4n Date: Fri, 17 Mar 2023 10:54:11 +0100 Subject: [PATCH] maj mSNR --- src/main/java/fr/ntr/scheduler/MaxSNR.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)); } } }