From fcbb371e56561c94cde3e8c52a725524c70fb1d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andrej=20Kou=C5=99il?= Date: Mon, 28 Mar 2016 17:22:40 +0200 Subject: [PATCH 1/1] forgoten brackets at rule --- widgets/bat.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5