This commit is contained in:
Tr1xt4n 2023-03-31 09:49:42 +02:00
parent d78d422a07
commit 21815c03da

View File

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