From 5dd9e98f27bfd7a206d4b4b1a97d20d487e0ff90 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 5 Oct 2021 15:03:48 +0200 Subject: [PATCH] SendSystemInfo: Return number of logical cores on Apple --- src/slic3r/GUI/SendSystemInfoDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/SendSystemInfoDialog.cpp b/src/slic3r/GUI/SendSystemInfoDialog.cpp index e27e981ea..a9583216f 100644 --- a/src/slic3r/GUI/SendSystemInfoDialog.cpp +++ b/src/slic3r/GUI/SendSystemInfoDialog.cpp @@ -401,7 +401,7 @@ static std::string generate_system_info_json() cpu_node.put("Vendor", cpu_info["Vendor"]); #elif __APPLE__ std::map sysctl = parse_lscpu_etc("sysctl -a", ':'); - cpu_node.put("Cores", sysctl["machdep.cpu.core_count"]); + cpu_node.put("Cores", sysctl["hw.ncpu"]); cpu_node.put("Model", sysctl["machdep.cpu.brand_string"]); cpu_node.put("Vendor", sysctl["machdep.cpu.vendor"]); #else // linux/BSD