diff options
author | Lyderic Lefever <lyderic.lefever@gmail.com> | 2013-12-25 12:31:43 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2013-12-27 17:21:40 +0100 |
commit | 6e16a412efc190e450b14dd5f53261e33ec99379 (patch) | |
tree | 5db1d21ad8e94eef0f9d5fad02b2d2059da8c8d6 /widgets/bat.lua | |
parent | bfbc1bdd5158ab88511de5670498647e9e29db45 (diff) | |
download | vicious-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>
Diffstat (limited to 'widgets/bat.lua')
-rw-r--r-- | widgets/bat.lua | 2 |
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} |