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