mirror of
https://github.com/rad4day/Waybar.git
synced 2025-09-16 23:42:32 +02:00
refactor: proper modules destruction
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fstream>
|
||||
#include "util/chrono.hpp"
|
||||
#include "util/sleeper_thread.hpp"
|
||||
#include "ALabel.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
@@ -10,6 +10,7 @@ namespace waybar::modules {
|
||||
class Memory : public ALabel {
|
||||
public:
|
||||
Memory(const std::string&, const Json::Value&);
|
||||
~Memory() = default;
|
||||
auto update() -> void;
|
||||
private:
|
||||
static inline const std::string data_dir_ = "/proc/meminfo";
|
||||
|
Reference in New Issue
Block a user