X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/13a6d1cf457e3c5ed813f74c03b01041115c29c4..cec4a68c630b93315c43f53eef3f9a416726a3a3:/widgets/bat.lua diff --git a/widgets/bat.lua b/widgets/bat.lua index 4a25d63..4526c85 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -75,7 +75,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)