From: Andrej KouĊ™il Date: Mon, 28 Mar 2016 15:22:40 +0000 (+0200) Subject: forgoten brackets at rule X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/fcbb371e56561c94cde3e8c52a725524c70fb1d1?ds=sidebyside;hp=--cc forgoten brackets at rule --- fcbb371e56561c94cde3e8c52a725524c70fb1d1 diff --git a/widgets/bat.lua b/widgets/bat.lua index 9ab4ce6..61ad6a3 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -85,11 +85,11 @@ local function worker(args) bat_now.ac_status = first_line(astr .. "/online") or "N/A" -- if rate = 0 or rate not defined skip the round - if not (rate_power and rate_power > 0) and + if not (rate_power and rate_power > 0) and not (rate_current and rate_current > 0) and - not bat_now.status == "Full" + not (bat_now.status == "Full") then - return + return end local rate_time = 0