Skip to content

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Dec 8, 2015

@bdunne
Copy link
Member Author

bdunne commented Dec 8, 2015

@jrafanie @Fryguy Please review.

We saw the incorrect core count yesterday in our debugging.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe total_cores

@bdunne bdunne force-pushed the add_hardware_class branch from 493075c to 3d8ca72 Compare January 14, 2016 23:16
@bdunne
Copy link
Member Author

bdunne commented Jan 14, 2016

@jrafanie Updated

@bdunne bdunne force-pushed the add_hardware_class branch 2 times, most recently from 712572d to 0f45430 Compare January 15, 2016 14:32
https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/miq-system.rb#L48:L62
MiqSystem.num_cpus is incorrectly reporting cores, this is a more reliable solution
@bdunne bdunne force-pushed the add_hardware_class branch from 0f45430 to 6e55bf8 Compare January 15, 2016 14:43
@miq-bot
Copy link
Member

miq-bot commented Jan 15, 2016

Checked commit bdunne@6e55bf8 with ruby 2.2.3, rubocop 0.34.2, and haml-lint 0.13.0
3 files checked, 3 offenses detected

spec/hardware_spec.rb

@bdunne bdunne changed the title Based on MiqSystem.num_cpus Add Hardware#total_cores based on MiqSystem.num_cpus Jan 15, 2016
@jrafanie
Copy link
Member

Looks good.

jrafanie added a commit that referenced this pull request Jan 15, 2016
Add Hardware#total_cores based on MiqSystem.num_cpus
@jrafanie jrafanie merged commit 670b026 into ManageIQ:master Jan 15, 2016
@bdunne bdunne deleted the add_hardware_class branch January 15, 2016 16:15
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