From: luke bonham Date: Tue, 4 Feb 2014 07:59:00 +0000 (+0100) Subject: bat: little fixes X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/5c0ce12f8ec4999352ce4a27e996a4c14fea4ea9 bat: little fixes --- 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)