add network monitoring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user