make it pointy, idk if i like the names

This commit is contained in:
Drath
2025-09-22 21:08:41 +02:00
parent f72a6ca139
commit f7cb927a7e
3 changed files with 25 additions and 22 deletions

View File

@@ -33,8 +33,8 @@ std::binary_semaphore main{0};
struct Sensors {
std::array<std::string, 2> td;
std::string loadavg;
mem_usage_t ram;
mem_usage_t home;
sys::Memory ram;
sys::Memory home;
cpu::sensors cpu;
gpu::sensors gpu;
float hass_state = 0.0f;
@@ -76,8 +76,8 @@ void sensorsThread(std::stop_token st, Sensors* s) {
// maybe make these take pointers too
s->td = getTimeDate();
s->loadavg = getAvgs();
s->ram = getRam();
s->home = getDisk("/home/drath");
sys::getRam(&s->ram);
sys::getDisk(&s->home, "/home/drath");
cpu::update(&s->cpu);
gpu::update(&s->gpu);
}