summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-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!(