make it pointy, idk if i like the names
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user