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

Fixup #111 Document the number of utilized cores and use 1 core at least #121

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

ppalaga
Copy link
Contributor

@ppalaga ppalaga commented Oct 21, 2020

No description provided.

@@ -234,7 +234,7 @@ public ExecutionResult execute(ClientOutput output, List<String> argv) {

static void setDefaultArgs(List<String> args) {
if (args.stream().noneMatch(arg -> arg.startsWith("-T") || arg.equals("--threads"))) {
int procs = Runtime.getRuntime().availableProcessors() - 1;
final int procs = Math.max(Runtime.getRuntime().availableProcessors() - 1, 1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want at least one core, even on a single-processor machine.

@gnodet gnodet merged commit 59fc315 into apache:master Oct 21, 2020
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.

None yet

2 participants