mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +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;
|
final double fullCount;
|
||||||
if (i < data.morePacketsFreq.numberOfBuckets() - 1) {
|
if (i < data.morePacketsFreq.numberOfBuckets()) {
|
||||||
// Assume all following time windows are burnt.
|
// 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 trailing = Math.max(data.morePacketsFreq.trailingScore(i, 1f), burnScore * (data.morePacketsFreq.numberOfBuckets() - i));
|
||||||
final float leading = data.morePacketsFreq.leadingScore(1, 1f);
|
final float leading = data.morePacketsFreq.leadingScore(i, 1f);
|
||||||
fullCount = leading + trailing;
|
fullCount = leading + trailing;
|
||||||
} else {
|
} else {
|
||||||
// All time windows are used.
|
// All time windows are used.
|
||||||
|
Loading…
Reference in New Issue
Block a user