mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: simpler memory code
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user