style: fix

This commit is contained in:
Alexis
2018-09-10 11:16:57 +02:00
parent f78ef0d491
commit 0abaaf2f7f
6 changed files with 14 additions and 14 deletions

View File

@ -13,7 +13,7 @@ waybar::modules::Cpu::Cpu(const Json::Value& config)
auto waybar::modules::Cpu::update() -> void
{
struct sysinfo info = {0};
struct sysinfo info = {};
if (sysinfo(&info) == 0) {
float f_load = 1.f / (1u << SI_LOAD_SHIFT);
uint16_t load = info.loads[0] * f_load * 100 / get_nprocs();