Peer: fix JavaDoc about number of buckets

This commit is contained in:
Andreas Schildbach 2023-03-19 23:14:49 +01:00
parent 78cc85dc1e
commit 8faf61ae0c

View File

@ -1586,7 +1586,7 @@ public class Peer extends PeerSocketHandler {
/**
* Returns a moving average of the last N ping/pong cycles. If {@link Peer#sendPing()} has never
* been called or we did not hear back the "pong" message yet, returns empty. The moving average
* window is 5 buckets.
* window is {@link #PING_MOVING_AVERAGE_WINDOW} buckets.
* @return moving average, or empty
*/
public Optional<Duration> pingInterval() {