Made more generic

This commit is contained in:
Trustin Lee 2008-09-30 14:23:38 +00:00
parent 44c409ca24
commit 2f4e20ce7a

View File

@ -160,7 +160,7 @@ public class DefaultReceiveBufferSizePredictor implements
}
public void previousReceiveBufferSize(int previousReceiveBufferSize) {
if (previousReceiveBufferSize <= SIZE_TABLE[Math.max(0, index - 2)]) {
if (previousReceiveBufferSize <= SIZE_TABLE[Math.max(0, index - INDEX_DECREMENT - 1)]) {
if (decreaseNow) {
index = Math.max(index - INDEX_DECREMENT, minIndex);
nextReceiveBufferSize = SIZE_TABLE[index];