Skip to content

Physical processor count fix - #901

Merged
dbwiddis merged 3 commits into
oshi:masterfrom
ellemcfarlane:my-bug900fix
Jun 30, 2019
Merged

dbwiddis merged 3 commits into
oshi:masterfrom
ellemcfarlane:my-bug900fix

Conversation

@ellemcfarlane

Copy link
Copy Markdown
Contributor

Attempted to address bug in physical processor count for linux and unix. Still needs to be tested.

@coveralls

coveralls commented Jun 29, 2019 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 78.984% when pulling bae9834 on ellesummer:my-bug900fix into f9e662f on oshi:master.

@dbwiddis dbwiddis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks great! I'll let the automated code review do its thing and merge. If you have time before that, one exceedingly minor comment that won't hold up the merge but is more preference.

physProcs.add(logProc.getPhysicalProcessorNumber());
physPkgs.add(logProc.getPhysicalPackageNumber());
int pkg = logProc.getPhysicalPackageNumber();
physProcPkgs.add("" + logProc.getPhysicalProcessorNumber() + ":" + pkg);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Given the ":" is added later to convert the int to String, it's unneeded to include the empty string to start.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah of course. I had the "" in the beginning before I forgot to include the delimiter. I'll fix it now.

@dbwiddis

Copy link
Copy Markdown
Member

Merging. Something's up with the Travis JDK 11 script so that test indicates failing, but it's not an issue.

@dbwiddis
dbwiddis merged commit 161a0bf into oshi:master Jun 30, 2019
@dbwiddis

Copy link
Copy Markdown
Member

Thanks for your contribution to Open Source!

@ellemcfarlane

Copy link
Copy Markdown
Contributor Author

Thanks for the guidance!

@dbwiddis

Copy link
Copy Markdown
Member

I've updated the CONTRIBUTING.md doc based on your feedback, let me know if it's more clear now!

@ellemcfarlane

Copy link
Copy Markdown
Contributor Author

Much clearer, thanks.

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