From 58a7c159668f7993d222488d5df50921e3199840 Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 18 Jul 2014 02:33:13 +0200 Subject: [PATCH] Check violation vs. the less strict limit. --- .../fr/neatmonster/nocheatplus/checks/moving/MorePackets.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c4576150..7047ffc5 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 @@ -97,7 +97,7 @@ public class MorePackets extends Check { } - final double violation = (double) fullCount - (double) (burnScore * data.morePacketsFreq.numberOfBuckets()); + final double violation = (double) fullCount - (double) (maxPackets * data.morePacketsFreq.numberOfBuckets() * data.morePacketsFreq.bucketDuration() / 1000f); // TODO: Burn time windows based on other activity counting [e.g. same resolution ActinFrequency with keep-alive].