mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	SendSystemInfo: Return number of logical cores on Apple
This commit is contained in:
		
							parent
							
								
									5b5c72e73e
								
							
						
					
					
						commit
						5dd9e98f27
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -401,7 +401,7 @@ static std::string generate_system_info_json() | |||
|     cpu_node.put("Vendor", cpu_info["Vendor"]); | ||||
| #elif __APPLE__ | ||||
|      std::map<std::string, std::string> 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
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Matena
						Lukas Matena