align structs, idk if it does anything

This commit is contained in:
2026-01-02 17:53:36 +01:00
parent 9d1b50882b
commit 0e060f15f9
5 changed files with 31 additions and 24 deletions

View File

@@ -8,19 +8,21 @@
namespace cpu {
struct cpuSensors {
std::string hwmon;
bool zenpower = false;
enum Module : uint8_t { unknown, k10temp, zenpower };
int tdie = 0;
int tctl = 0;
int tccd1 = 0;
double pcore = 0.0;
double psoc = 0.0;
double ptotal = 0.0;
double vcore = 0.0;
double vsoc = 0.0;
struct cpuSensors {
Module module = unknown;
std::byte _pad[1];
int16_t tdie = 0;
int16_t tctl = 0;
int16_t tccd1 = 0;
// double pcore = 0.0;
// double psoc = 0.0;
float ptotal = 0.0;
// double vcore = 0.0;
// double vsoc = 0.0;
uint32_t avg_freq = 0;
std::string hwmon;
};
void detectHwmon(cpuSensors* target, const std::string& pci);