mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-22 23:41:28 +01:00
Indentation.
This commit is contained in:
parent
24120f306a
commit
eb8cba597f
@ -42,9 +42,12 @@ public class NetStatic {
|
||||
// Pull down stuff.
|
||||
final long winDur = packetFreq.bucketDuration();
|
||||
final int winNum = packetFreq.numberOfBuckets();
|
||||
|
||||
// TODO: "Relax" bursts from i = 1 on, i.e. distribute to following intervals (if zero ~ ?or lower).
|
||||
// [relax based on checking, not updating first (!).]
|
||||
|
||||
// Add packet to frequency count.
|
||||
packetFreq.add(time, packets);
|
||||
// TODO: Add a per-bucket violation AF (once first bucket > thresh => pbvAF.add(now, 1f) + if total score > xyz => extra violation).
|
||||
|
||||
// Fill up all "used" time windows (minimum we can do without other events).
|
||||
final float burnScore = (float) idealPackets * (float) winDur / 1000f;
|
||||
|
Loading…
Reference in New Issue
Block a user