Skip to content

Commit

Permalink
Use physical number of cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
Virv12 authored and veluca93 committed Mar 8, 2024
1 parent 2e1803c commit 1a6d6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl RuntimeContext {
let cache = Cache::new(cache_path).context("Cannot create the cache")?;

// setup the local executor
let num_cores = opt.num_cores.unwrap_or_else(num_cpus::get);
let num_cores = opt.num_cores.unwrap_or_else(num_cpus::get_physical);
let sandbox_path = storage_opt.store_dir().join("sandboxes");
let executor = LocalExecutor::new(
file_store.clone(),
Expand Down

0 comments on commit 1a6d6a7

Please sign in to comment.