From f45852a5880fbcd9670f0de3643ea9614ec35de4 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 7 Jun 2021 09:43:00 +0800 Subject: [PATCH] Prepare new release --- CHANGELOG.md | 5 +++++ src/main.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb2cfcd4..43b09b74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +#### v2.12.2 + +* Prepare for release of new Apple hardware and be more specific when auto-configuring the correct amount of threads. + Instead an error message will be printed to inform that the given CPU brand isn't configurable yet. + #### v2.12.1 * Fixed bug that would cause `dua` to unconditionally sleep for 1 second. This sleep was intended for a spawned thread, diff --git a/src/main.rs b/src/main.rs index 1f523ba1..4c751915 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,7 +41,7 @@ fn derive_default_threads(threads: usize) -> usize { "Apple M1" => 4, other => { eprintln!( - "Couldn't auto-configure correct amount of threads for {}", + "Couldn't auto-configure correct amount of threads for {}. Create an issue here: https://github.com/byron/dua-cli/issues", other ); 0