diff --git a/widgets/bat.lua b/widgets/bat.lua index 54959eb..e43875f 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -98,7 +98,7 @@ local function worker(args) math.floor((energy_now / energy_full) * 100) bat_now.n_status[i] = first_line(bstr .. "/status") or "N/A" - bat_now.perc[i] = energy_percentage or bat_now.perc[i] + bat_now.n_perc[i] = energy_percentage or bat_now.n_perc[i] sum_rate_current = sum_rate_current + (rate_current or 0) sum_rate_voltage = sum_rate_voltage + (rate_voltage or 0)