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/e530ec7fcde3245484a739f077d3f0f907a7d87a 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)