| 10 | #endif |
| 11 | |
| 12 | waybar::modules::Load::Load(const std::string& id, const Json::Value& config) |
| 13 | : ALabel(config, "load", id, "{load1}", 10) { |
| 14 | thread_ = [this] { |
| 15 | dp.emit(); |
| 16 | thread_.sleep_for(interval_); |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | auto waybar::modules::Load::update() -> void { |
| 21 | // TODO: as creating dynamic fmt::arg arrays is buggy we have to calc both |