Merge remote-tracking branch 'origin/ajout_cellule' into ajout_cellule
This commit is contained in:
commit
df77238cc9
@ -35,11 +35,13 @@ public class MaxSNR extends Scheduler {
|
|||||||
double maxSnr = 0.0;
|
double maxSnr = 0.0;
|
||||||
User userMax = null;
|
User userMax = null;
|
||||||
for(User u: users){
|
for(User u: users){
|
||||||
|
if(!u.getPacketsToSend().isEmpty()) {
|
||||||
if (maxSnr < u.getBandwidthTable()[ts][sp]) {
|
if (maxSnr < u.getBandwidthTable()[ts][sp]) {
|
||||||
maxSnr = u.getBandwidthTable()[ts][sp];
|
maxSnr = u.getBandwidthTable()[ts][sp];
|
||||||
userMax = u;
|
userMax = u;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return userMax;
|
return userMax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user