From 94a9ebeca1febbf8e9aa395803ee175ccfbd6319 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Fri, 27 Sep 2013 13:09:29 +0200 Subject: [PATCH] counterfix on pull #6 --- widgets/bat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5