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

Bug - If machine only has one core, no comparison will happen #6

Open
petems opened this issue Jun 18, 2017 · 0 comments
Open

Bug - If machine only has one core, no comparison will happen #6

petems opened this issue Jun 18, 2017 · 0 comments

Comments

@petems
Copy link

petems commented Jun 18, 2017

Spotted this on a one core test system I was trying this on:

Facter.value('processors')['count'] #=> 1
1 / 2 #=> 0 (integer in Ruby terms)
@threads = Array.new(num_threads) do #=> 0, so no code runs

Fix in PR: #7

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

No branches or pull requests

1 participant