overhaul of sys

This commit is contained in:
Drath
2025-09-22 22:17:51 +02:00
parent 1998fb6953
commit a9afb46c19
3 changed files with 25 additions and 41 deletions

View File

@@ -8,17 +8,23 @@
#include <string>
#include <utils.hpp>
std::string getAvgs();
std::array<std::string, 2> getTimeDate();
namespace sys {
const char months[][4] = {"sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paz", "lis", "gru"};
const char wdays[][4] = {"Nie", "Pon", "Wto", "Sro", "Czw", "Pia", "Sob"};
struct Memory {
uint64_t free = 0;
uint64_t used = 0;
uint64_t total = 0;
};
struct TimeDate {
char time[9];
char date[13];
};
void getTimeDate(TimeDate* td);
void getDisk(Memory* disk, std::string mount);
void getRam(Memory* mem);