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/efca46a9f4ce0b43c6d9a6a74b3ae6cb7b7871e6 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