diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-10-26 16:22:38 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-10-26 16:34:09 +0800 |
commit | 49193f0506946981bc056b29c3f09c94e30ac457 (patch) | |
tree | 788517f8e5e209657f572a12553f5950194ecaa5 | |
parent | 07b934f4e17e0b180d1734a810da3b533a29e43b (diff) |
change: auto-config support for Apple M1 Pro and Apple M1 Max
-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 daff281..5da8e0f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,7 +38,7 @@ fn derive_default_threads(threads: usize) -> usize { .processors() .get(0) .map_or(0, |p| match p.brand() { - "Apple M1" => 4, + "Apple M1"|"Apple M1 Pro"|"Apple M1 Max" => 4, other => { eprintln!( "Couldn't auto-configure correct amount of threads for {}. Create an issue here: https://github.com/byron/dua-cli/issues", |