mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 11:10: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;
|
sum += passed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// TODO: Investigate on < 1f.
|
||||||
return (float) sum / (float) covered;
|
return Math.max(1f, (float) sum / (float) covered);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user