X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/11656d7713b53f30841c5c302d9f1d44f23df439..e530ec7fcde3245484a739f077d3f0f907a7d87a:/widgets/bat.lua?ds=inline diff --git a/widgets/bat.lua b/widgets/bat.lua index 48a14fb..21b5c43 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -59,7 +59,7 @@ local function worker(args) bat_now.status = first_line(bstr .. "/status") or "N/A" - rate = tonumber(rate) + rate = tonumber(rate) or 1 ratev = tonumber(ratev) rem = tonumber(rem) tot = tonumber(tot)