This commit is contained in:
Tr1xt4n 2023-03-17 10:54:11 +01:00
parent ef528d2367
commit d7517d4226

View File

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