From 3ea1e2f42e66ff920441e0ed55aa5aedb16866ee Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Mon, 2 Mar 2026 14:25:56 +0000 Subject: [PATCH] bwa --- src/cpu.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/cpu.rs b/src/cpu.rs index 21bbb56..9a3cac3 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -11,13 +11,16 @@ use std::thread; #[derive(Clone, Debug)] pub struct Cpu { - pub cores: HashMap, + pub cores: Vec, } #[derive(Clone, Copy, Debug)] -struct CpuCore {} +struct CpuCore { + id: i32, + core_type: CoreType, +} -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] enum CoreType { P, // Performence E, // Efficent @@ -47,7 +50,7 @@ impl CpuCore { // If its not an intel cpu it can fail me thinks return Err(()); } - Ok(cpuid.eax == 536870914) + Ok(cpuid.eax == 0x20000002) } }