mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 10:28:05 +01:00
TickTask.getLag: Never return anything smaller than 1.
This commit is contained in:
parent
200a96440e
commit
342ef0f5a6
@ -266,8 +266,8 @@ public class TickTask implements Runnable {
|
||||
sum += passed;
|
||||
}
|
||||
}
|
||||
|
||||
return (float) sum / (float) covered;
|
||||
// TODO: Investigate on < 1f.
|
||||
return Math.max(1f, (float) sum / (float) covered);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user