From e530ec7fcde3245484a739f077d3f0f907a7d87a Mon Sep 17 00:00:00 2001 From: luke bonham Date: Tue, 4 Feb 2014 08:59:00 +0100 Subject: [PATCH] bat: little fixes --- widgets/bat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5