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

Changed return type of getMTU() from int to long #1736

Merged
merged 6 commits into from
Oct 5, 2021

Conversation

Simba-97
Copy link
Contributor

@Simba-97 Simba-97 commented Oct 5, 2021

Changed return type of the NetworkInterface method getMTU() from int to long in all its OS implementations.

@Simba-97
Copy link
Contributor Author

Simba-97 commented Oct 5, 2021

Sorry @dbwiddis I had to create a new PR as the last one was messed up with a lot of branching, also I had to disable my code formatter. I hope you consider this PR. Anyways thank you for the opportunity and patience that you showed.

@dbwiddis
Copy link
Member

dbwiddis commented Oct 5, 2021

No problem, the whole purpose of the Hactoberfest issues is for you to learn. This PR looks great. I've got a tweak I'll make to it tonight and then merge it.

@dbwiddis dbwiddis added the hacktoberfest-accepted Accepted during Hacktoberfest label Oct 5, 2021
@dbwiddis
Copy link
Member

dbwiddis commented Oct 5, 2021

I can fix all these with a single mouseclick if you want. :)

@Simba-97
Copy link
Contributor Author

Simba-97 commented Oct 5, 2021

@dbwiddis Thank you so much. Appreciate it. 👍🏻 :)

@dbwiddis
Copy link
Member

dbwiddis commented Oct 5, 2021

Will merge as soon as tests finish.

@Simba-97
Copy link
Contributor Author

Simba-97 commented Oct 5, 2021

I have tried my best to not mess up the code format but if you feel it need some tweaks then go ahead.

@dbwiddis
Copy link
Member

dbwiddis commented Oct 5, 2021

Just a few trailing spaces and I moved the MTU test up out of the local tests since the "windows is negative for local interfaces" didn't apply any more. No worries and thanks for the PR!

@dbwiddis dbwiddis merged commit 900fc10 into oshi:master Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accepted during Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants