From f50543b4497c5055c51060b32eead6e51584d360 Mon Sep 17 00:00:00 2001 From: aajjbb Date: Sun, 3 Apr 2016 14:10:54 -0300 Subject: [PATCH 1/1] fixing parethesis issue --- widgets/bat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/bat.lua b/widgets/bat.lua index f20034b..1391641 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -94,7 +94,7 @@ local function worker(args) local rate_time = 0 if bat_now.status == "Charging" then - rate_time = (energy_full - energy_now) / rate_power or rate_current + rate_time = (energy_full - energy_now) / (rate_power or rate_current) elseif bat_now.status == "Discharging" then rate_time = energy_now / (rate_power or rate_current) end -- 2.39.5