have disks have its own struct
This commit is contained in:
@@ -21,6 +21,11 @@ struct Memory {
|
||||
uint64_t total = 0;
|
||||
};
|
||||
|
||||
struct Disk {
|
||||
std::string mountpoint;
|
||||
Memory usage;
|
||||
};
|
||||
|
||||
struct TimeDate {
|
||||
std::string time;
|
||||
std::string date;
|
||||
@@ -32,7 +37,7 @@ struct Network {
|
||||
};
|
||||
|
||||
void getTimeDate(TimeDate* td);
|
||||
void getDisk(Memory* disk, std::string mount);
|
||||
void getDisk(Disk* disk);
|
||||
void getRam(Memory* mem);
|
||||
void getNetwork(Network* net, std::string device);
|
||||
void detectHwmon(sysSensors* s, std::string platform);
|
||||
|
||||
Reference in New Issue
Block a user