Skip to content

Commit

Permalink
Set default 'cpus' closes #180
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoffland committed Dec 27, 2023
1 parent a7e120b commit c5a103f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fah/client/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ App::App() :

options.pushCategory("Resource Settings");
options.add("cpus", "Number of cpus FAH client will use.",
new MaxConstraint<int32_t>(getDefaultCPUs()));
new MaxConstraint<int32_t>(SystemInfo::instance().getCPUCount())
)->setDefault(getDefaultCPUs());

options.popCategory();

options["allow"].setDefault("127.0.0.1");
Expand Down

0 comments on commit c5a103f

Please sign in to comment.