c++ify time/date, clean up includes while we're at it
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
#ifndef SYS_HPP
|
||||
#define SYS_HPP
|
||||
|
||||
#include <string_view>
|
||||
#include <sys/statvfs.h>
|
||||
|
||||
#include <array>
|
||||
#include <ctime>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <utils.hpp>
|
||||
|
||||
namespace sys {
|
||||
|
||||
@@ -27,8 +22,8 @@ struct Memory {
|
||||
};
|
||||
|
||||
struct TimeDate {
|
||||
char time[9];
|
||||
char date[13];
|
||||
std::string time;
|
||||
std::string date;
|
||||
};
|
||||
|
||||
struct Network {
|
||||
@@ -39,7 +34,7 @@ struct Network {
|
||||
void getTimeDate(TimeDate* td);
|
||||
void getDisk(Memory* disk, std::string mount);
|
||||
void getRam(Memory* mem);
|
||||
void getNetwork(Network* net, std::string_view device);
|
||||
void getNetwork(Network* net, std::string device);
|
||||
void detectHwmon(sysSensors* s, std::string platform);
|
||||
void updateSensors(sysSensors* s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user