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) } }