27 lines
407 B
C++
27 lines
407 B
C++
#ifndef SYS_HPP
|
|
#define SYS_HPP
|
|
|
|
#include <sys/statvfs.h>
|
|
|
|
#include <array>
|
|
#include <ctime>
|
|
#include <string>
|
|
#include <utils.hpp>
|
|
|
|
std::string getAvgs();
|
|
std::array<std::string, 2> getTimeDate();
|
|
|
|
namespace sys {
|
|
|
|
struct Memory {
|
|
uint64_t free = 0;
|
|
uint64_t used = 0;
|
|
uint64_t total = 0;
|
|
};
|
|
|
|
void getDisk(Memory* disk, std::string mount);
|
|
void getRam(Memory* mem);
|
|
|
|
} // namespace sys
|
|
|
|
#endif |