From: luke bonham Date: Fri, 27 Sep 2013 11:09:29 +0000 (+0200) Subject: counterfix on pull #6 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/94a9ebeca1febbf8e9aa395803ee175ccfbd6319?ds=sidebyside;hp=5ebdab637085b1fbf20e47aba6c04f04191bf0ce counterfix on pull #6 --- diff --git a/widgets/bat.lua b/widgets/bat.lua index 789c694..fd99e4d 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -74,7 +74,7 @@ local function worker(args) bat_now.watt = string.format("%.2fW", (rate * ratev) / 1e12) -- notifications for low and critical states - if bat_new.status == "Discharging" + if bat_now.status == "Discharging" then if bat_now.perc <= 5 then