Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

(FACT-2552) Add Solaris processors facts#451

Merged
BogdanIrimie merged 3 commits intomasterfrom
FACT-2552
Apr 24, 2020
Merged

(FACT-2552) Add Solaris processors facts#451
BogdanIrimie merged 3 commits intomasterfrom
FACT-2552

Conversation

@oanatmaria
Copy link
Copy Markdown
Contributor

Description: Added solaris processors facts that were retrieved with kstat command. Bringing all methods that converts (bytes to mb, bytes to human readable, to hz) into one class.

@oanatmaria oanatmaria requested review from a team April 14, 2020 14:20
@oanatmaria oanatmaria force-pushed the FACT-2552 branch 2 times, most recently from 83f7282 to a4d61ec Compare April 15, 2020 08:25
Comment thread lib/facts_utils/converter.rb Outdated
Comment thread lib/facts_utils/converter.rb Outdated
Comment thread lib/facts_utils/converter.rb Outdated
format('%<displayed_speed>.2f', displayed_speed: validated_speed).to_s + ' ' + prefix[power] + 'Hz'
end

def bytes_to_human_readable(bytes)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would remove _readable, it's as clear even without it.

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.

I kept the _readable because i think it is easier to understand what that method is supposed to do.

Comment thread lib/facts_utils/converter.rb
Comment thread lib/facts_utils/converter.rb Outdated
@BogdanIrimie BogdanIrimie merged commit 7019e89 into master Apr 24, 2020
@BogdanIrimie BogdanIrimie deleted the FACT-2552 branch April 24, 2020 11:57
Filipovici-Andrei pushed a commit that referenced this pull request Apr 28, 2020
* (FACT-2552) Add Solaris processors facts
* (FACT-2552) Fix rspec failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants