feat(states): add getState to other percent based modules

This commit is contained in:
Dan
2019-05-02 22:19:47 -04:00
parent 3bac96945c
commit 5f0a3063d1
5 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ auto waybar::modules::Cpu::update() -> void {
label_.set_tooltip_text(tooltip);
}
label_.set_markup(fmt::format(format_, fmt::arg("load", cpu_load), fmt::arg("usage", cpu_usage)));
getState(cpu_usage);
}
uint16_t waybar::modules::Cpu::getCpuLoad() {