From f79c89b45a8dcc802c190a115a1186c5bf429d25 Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 18 Jul 2014 01:47:55 +0200 Subject: [PATCH] MIX UP. --- .../neatmonster/nocheatplus/checks/moving/MorePackets.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MorePackets.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MorePackets.java index 8d6351a7..23a24b10 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MorePackets.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MorePackets.java @@ -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.