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

Adds slightly longer sleep before checking net dev carrier file #275

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

nkinkade
Copy link
Contributor

@nkinkade nkinkade commented Oct 16, 2024

I had previously thought that 1s was a lot of time in terms of CPU and kernel time, and it is, but there was apparently more than a 1s delay between bringing an interface up and the file /sys/class/net/eth*/carrier being populated with a value by the kernel. It seems that just changing the sleep from 1s to 2s was enough, can I can now verify that this file has the correct value when looping over interfaces.


This change is Reviewable

Copy link
Contributor

@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@nkinkade nkinkade merged commit 66d46c8 into main Oct 16, 2024
5 checks passed
@nkinkade nkinkade deleted the sandbox-kinkade branch October 16, 2024 20:10
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.

2 participants