int tscore = 0;
if (scores.contains(t))
tscore = scores.get(t);
- if (score < tscore)
+ if (score > tscore)
break;
}
- DEBUG("ranking[%u]=tuner<%p>(Score=%d)\n", j, tuner, score);
- DEBUG("************************\n");
+ LOG("ranking[%u]=tuner<%p>(Score=%d)\n", j, tuner, score);
+ LOG("************************\n");
ranking.insertAt(j, tuner);
}
- DEBUG("tunerSize=%u\trankingSize=%u\ttunerVSize=%u\n", tuners.getSize(), ranking.getSize(), tunerV->getSize());
+ LOG("tunerSize=%u\trankingSize=%u\ttunerVSize=%u\n", tuners.getSize(), ranking.getSize(), tunerV->getSize());
for (uint i = tuners.getSize(); i < ranking.getSize(); i++) {
TunerRecord *tuner = ranking.get(i);
model_print("Removing tuner %u\n", tuner->tunernumber);