summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-06-30 07:43:19 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-06-30 07:43:19 +0800
commite1b8a01579e211c268356ea25c56cfb9391ca717 (patch)
tree31291bc46b06d393ce1c47c7d9ea4d8dfbbcbcc5 /src
parent0bf969f7017f34e626ee892f24e7bacc62e0a5c5 (diff)
upgrade sysinfo
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 15a34ff..daff281 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -35,9 +35,9 @@ fn derive_default_threads(threads: usize) -> usize {
use sysinfo::{ProcessorExt, RefreshKind, SystemExt};
if threads == 0 {
sysinfo::System::new_with_specifics(RefreshKind::new().with_cpu())
- .get_processors()
+ .processors()
.get(0)
- .map_or(0, |p| match p.get_brand() {
+ .map_or(0, |p| match p.brand() {
"Apple M1" => 4,
other => {
eprintln!(