From: copycat-killer Date: Tue, 16 Aug 2016 10:43:04 +0000 (+0200) Subject: #222 #223: percentage shown for every battery; fix typo 2 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/f0deb3749f0188c31ac91f3308e8925275dcb290?ds=inline;hp=-c #222 #223: percentage shown for every battery; fix typo 2 --- f0deb3749f0188c31ac91f3308e8925275dcb290 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)