diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-12-16 11:43:55 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-12-16 11:43:55 +0800 |
commit | a1cf012f36269d97953baac9288b2fc5551bc6a0 (patch) | |
tree | 3626142d34011390d142d9ffd0daa016bf9423a6 /src/main.rs | |
parent | 7c40f95b4e05eacfbdb0e3267d443f4642c9f80b (diff) |
Select better default thread count on Apple Silicon (M1)
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 9313c26..9f1be5e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ fn main() -> Result<()> { let opt: options::Args = options::Args::parse_from(wild::args_os()); let walk_options = dua::WalkOptions { - threads: opt.threads.unwrap_or(0), + threads: opt.threads, byte_format: opt.format.map(Into::into).unwrap_or(ByteFormat::Metric), apparent_size: opt.apparent_size, count_hard_links: opt.count_hard_links, |