refactor: simpler memory code

This commit is contained in:
Alexis
2018-11-09 22:55:25 +01:00
parent a5bca24f9b
commit 45bb8b1a1f
2 changed files with 32 additions and 38 deletions

View File

@ -12,6 +12,7 @@ class Memory : public ALabel {
Memory(const Json::Value&);
auto update() -> void;
private:
static inline const std::string data_dir_ = "/proc/meminfo";
unsigned long memtotal_;
unsigned long memfree_;
void parseMeminfo();