Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vegas smoothing and set default to 1.0 #36

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

elandau
Copy link
Contributor

@elandau elandau commented Apr 5, 2018

No description provided.

@qiangdavidliu qiangdavidliu self-requested a review April 5, 2018 20:12
@elandau elandau merged commit 39486b6 into Netflix:master Apr 5, 2018
} else {
return;
}
}

newLimit = Math.max(1, Math.min(maxLimit, newLimit));
newLimit = (int) ((1 - smoothing) * estimatedLimit + smoothing * newLimit);
newLimit = (1 - smoothing) * estimatedLimit + smoothing * newLimit;
if ((int)newLimit != (int)estimatedLimit && LOG.isDebugEnabled()) {
LOG.debug("New limit={} minRtt={} μs winRtt={} μs queueSize={}",
estimatedLimit,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be newLimit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants