Merge remote-tracking branch 'origin/ajout_cellule' into ajout_cellule

This commit is contained in:
Quentin Legot 2023-03-31 09:53:26 +02:00
commit df77238cc9

View File

@ -35,9 +35,11 @@ public class MaxSNR extends Scheduler {
double maxSnr = 0.0;
User userMax = null;
for(User u: users){
if (maxSnr < u.getBandwidthTable()[ts][sp]) {
maxSnr = u.getBandwidthTable()[ts][sp];
userMax = u;
if(!u.getPacketsToSend().isEmpty()) {
if (maxSnr < u.getBandwidthTable()[ts][sp]) {
maxSnr = u.getBandwidthTable()[ts][sp];
userMax = u;
}
}
}
return userMax;