diff options
author | Ferdia McKeogh <ferdia@mckeogh.tech> | 2022-07-21 08:17:36 +0100 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-07-22 08:47:08 +0800 |
commit | b5ec90042dec10fef8a35c27c2f7dcdb97b92293 (patch) | |
tree | 809f62c15c6f54058f7589bdb99c2e21bedc3613 | |
parent | 6bd433831850c2032674e440809ac86c0b8c6784 (diff) |
Add Apple M2 to default thread derivation
-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 af7406c..c185d75 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"|"Apple M1 Pro"|"Apple M1 Max" => 4, + "Apple M1"|"Apple M1 Pro"|"Apple M1 Max"|"Apple M2" => 4, other => { eprintln!( "Couldn't auto-configure correct amount of threads for {}. Create an issue here: https://github.com/byron/dua-cli/issues", |