From f0deb3749f0188c31ac91f3308e8925275dcb290 Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Tue, 16 Aug 2016 12:43:04 +0200 Subject: [PATCH] #222 #223: percentage shown for every battery; fix typo 2 --- widgets/bat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)