aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyderic Lefever <lyderic.lefever@gmail.com>2013-12-25 11:31:43 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2013-12-27 16:21:40 (GMT)
commit6e16a412efc190e450b14dd5f53261e33ec99379 (patch)
tree5db1d21ad8e94eef0f9d5fad02b2d2059da8c8d6
parentbfbc1bdd5158ab88511de5670498647e9e29db45 (diff)
downloadvicious-legacy-6e16a412efc190e450b14dd5f53261e33ec99379.tar.xz
bat: fix broken battery remaining time (was always N/A)
Bug was introduced in commit dc556e5415 and the new discharging symbol. Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
-rw-r--r--widgets/bat.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/bat.lua b/widgets/bat.lua
index 454e43f..1f491d9 100644
--- a/widgets/bat.lua
+++ b/widgets/bat.lua
@@ -74,7 +74,7 @@ local function worker(format, warg)
if rate ~= nil and rate ~= 0 then
if state == "+" then
timeleft = (tonumber(capacity) - tonumber(remaining)) / tonumber(rate)
- elseif state == "-" then
+ elseif state == "−" then
timeleft = tonumber(remaining) / tonumber(rate)
else
return {state, percent, time, wear}