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

Reworked bmca running to use new interface. #176

Merged
merged 2 commits into from
Jul 14, 2023
Merged

Reworked bmca running to use new interface. #176

merged 2 commits into from
Jul 14, 2023

Conversation

davidv1992
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Merging #176 (482e3aa) into refactor (d24ff27) will increase coverage by 0.05%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##           refactor     #176      +/-   ##
============================================
+ Coverage     58.15%   58.20%   +0.05%     
============================================
  Files            56       56              
  Lines          5690     5685       -5     
============================================
  Hits           3309     3309              
+ Misses         2381     2376       -5     
Impacted Files Coverage Δ
statime-linux/src/main.rs 0.00% <0.00%> (ø)
statime/src/port/mod.rs 0.00% <0.00%> (ø)
statime/src/ptp_instance.rs 0.00% <0.00%> (ø)

Base automatically changed from extract_network_port to refactor July 13, 2023 09:17
Copy link
Contributor

@folkertdev folkertdev left a comment

Choose a reason for hiding this comment

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

again, some questions that I suspect are not blockers


time_properties_ds.leap59 = false;
time_properties_ds.leap61 = false;
time_properties_ds.current_utc_offset = 37;
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Contributor

Choose a reason for hiding this comment

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

what is this magic constant?

Copy link
Member Author

Choose a reason for hiding this comment

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

True, suggest we refactor this later (this was moved code)

Comment on lines +298 to +299
time_properties_ds.leap59 = false;
time_properties_ds.leap61 = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we combine these like we do with the NtpLeapIndicator? or is it easier to keep them separate? they cannot both be true at the same time (right?)

Copy link
Member Author

Choose a reason for hiding this comment

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

True, suggest we refactor this later (this was moved code)

Comment on lines +345 to +346
2f64.powi(self.config.log_announce_interval as i32)
* (self.config.announce_receipt_timeout as f64),
Copy link
Contributor

Choose a reason for hiding this comment

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

this calculation comes up a bunch. Can it be a helper function ?

Copy link
Member Author

Choose a reason for hiding this comment

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

True, suggest we refactor this later (this was moved code)

@folkertdev folkertdev merged commit 2744c98 into refactor Jul 14, 2023
4 checks passed
@folkertdev folkertdev deleted the bmca-flow branch July 14, 2023 08:19
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.

3 participants