fix MaxSNR

This commit is contained in:
Tr1xt4n 2023-03-31 09:34:51 +02:00
parent 4e229dbed8
commit 671ccd2b18

View File

@ -36,11 +36,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;
}