This commit is contained in:
2026-03-02 14:25:56 +00:00
parent c0f1fb812d
commit 3ea1e2f42e

View File

@@ -11,13 +11,16 @@ use std::thread;
#[derive(Clone, Debug)]
pub struct Cpu {
pub cores: HashMap<i32, CpuCore>,
pub cores: Vec<CpuCore>,
}
#[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)
}
}