mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02:00
Deprecate old methods for lag-spikes.
This commit is contained in:
parent
59b0985f11
commit
74e3085ee0
@ -211,6 +211,7 @@ public class TickTask implements Runnable {
|
||||
|
||||
/**
|
||||
* Get moderate lag spikes of the last hour (>150 ms, lowest tracked spike duration).
|
||||
* @deprecated What is moderate :) ?
|
||||
* @return
|
||||
*/
|
||||
public static final int getModerateLagSpikes(){
|
||||
@ -220,7 +221,7 @@ public class TickTask implements Runnable {
|
||||
|
||||
/**
|
||||
* Get heavy lag spikes of the last hour (> 450 ms supposedly, first duration bigger than 150 ms).
|
||||
* @deprecated What is heavy :)
|
||||
* @deprecated What is heavy :) ?
|
||||
* @return
|
||||
*/
|
||||
public static final int getHeavyLagSpikes(){
|
||||
@ -228,6 +229,15 @@ public class TickTask implements Runnable {
|
||||
return (int) spikes[1].score(1f);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get total number of lag spikes counted at all. This is the number of lag spikes with a duration above spikeDuations[0] which should be 150 ms. This is the score of spikes[0].
|
||||
* @return
|
||||
*/
|
||||
public static final int getNumberOfLagSpikes(){
|
||||
spikes[0].update(System.currentTimeMillis());
|
||||
return (int) spikes[0].score(1f);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the stepping for lag spike duration tracking.
|
||||
* @return
|
||||
|
Loading…
Reference in New Issue
Block a user