Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5ec900

Browse files
fmckeoghByron
authored andcommitted
Add Apple M2 to default thread derivation
1 parent 6bd4338 commit b5ec900

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn derive_default_threads(threads: usize) -> usize {
3838
.processors()
3939
.get(0)
4040
.map_or(0, |p| match p.brand() {
41-
"Apple M1"|"Apple M1 Pro"|"Apple M1 Max" => 4,
41+
"Apple M1"|"Apple M1 Pro"|"Apple M1 Max"|"Apple M2" => 4,
4242
other => {
4343
eprintln!(
4444
"Couldn't auto-configure correct amount of threads for {}. Create an issue here: https://github.com/byron/dua-cli/issues",

0 commit comments

Comments
 (0)