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

Make figures comply with 65-character limit #1031

Merged
merged 3 commits into from
Jan 1, 2018
Merged

Conversation

MikeBishop
Copy link
Contributor

In preparation for a hopefully-better linting approach, I found that the current linter is actually allowing slightly more characters than it says it is and we have a few longish figure lines. No non-whitespace changes, but in recovery I did have to split two things across lines. Ian, if you'd rather do intermediate calculations here, go for it.

@MikeBishop MikeBishop added -http -recovery -tls editorial An issue that does not affect the design of the protocol; does not require consensus. labels Dec 24, 2017
Copy link
Contributor

@janaiyengar janaiyengar left a comment

Choose a reason for hiding this comment

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

LGTM, with one suggestion

rttvar = latest_rtt / 2
else:
rttvar = 3/4 * rttvar + 1/4 *
abs(smoothed_rtt - latest_rtt)
Copy link
Contributor

Choose a reason for hiding this comment

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

how about:

rttvar_sample = abs(smoothed_rtt - latest_rtt)
rttvar = 3/4 * rttvar + 1/4 * rttvar_sample

Copy link
Contributor

@ianswett ianswett left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup Mike, Recovery LGTM.

@martinthomson martinthomson merged commit f2e2f69 into master Jan 1, 2018
@MikeBishop MikeBishop deleted the figure_length branch January 21, 2018 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-http -recovery -tls editorial An issue that does not affect the design of the protocol; does not require consensus.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants