add network monitoring

This commit is contained in:
Drath Vader
2025-10-24 14:04:27 +02:00
parent 6e4e23e097
commit 5e42c45e28
2 changed files with 32 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
#ifndef SYS_HPP
#define SYS_HPP
#include <string_view>
#include <sys/statvfs.h>
#include <array>
@@ -30,12 +31,18 @@ struct TimeDate {
char date[13];
};
struct Network {
uint32_t download = 0;
uint32_t upload = 0;
};
void getTimeDate(TimeDate* td);
void getDisk(Memory* disk, std::string mount);
void getRam(Memory* mem);
void getNetwork(Network* net, std::string_view device);
void detectHwmon(sysSensors* s, std::string platform);
void updateSensors(sysSensors* s);
} // namespace sys
#endif
#endif