mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 12:01:51 +01:00
MIX UP.
This commit is contained in:
parent
e3cdd761ec
commit
f79c89b45a
@ -80,10 +80,10 @@ public class MorePackets extends Check {
|
||||
}
|
||||
}
|
||||
final double fullCount;
|
||||
if (i < data.morePacketsFreq.numberOfBuckets() - 1) {
|
||||
if (i < data.morePacketsFreq.numberOfBuckets()) {
|
||||
// Assume all following time windows are burnt.
|
||||
final float trailing = Math.max(data.morePacketsFreq.trailingScore(1, 1f), burnScore * (data.morePacketsFreq.numberOfBuckets() - (i + 1)));
|
||||
final float leading = data.morePacketsFreq.leadingScore(1, 1f);
|
||||
final float trailing = Math.max(data.morePacketsFreq.trailingScore(i, 1f), burnScore * (data.morePacketsFreq.numberOfBuckets() - i));
|
||||
final float leading = data.morePacketsFreq.leadingScore(i, 1f);
|
||||
fullCount = leading + trailing;
|
||||
} else {
|
||||
// All time windows are used.
|
||||
|
Loading…
Reference in New Issue
Block a user