mirror of https://github.com/lcpz/lain.git
bat: little fixes
This commit is contained in:
parent
c73b41c636
commit
5c0ce12f8e
|
@ -59,7 +59,7 @@ local function worker(args)
|
||||||
|
|
||||||
bat_now.status = first_line(bstr .. "/status") or "N/A"
|
bat_now.status = first_line(bstr .. "/status") or "N/A"
|
||||||
|
|
||||||
rate = tonumber(rate)
|
rate = tonumber(rate) or 1
|
||||||
ratev = tonumber(ratev)
|
ratev = tonumber(ratev)
|
||||||
rem = tonumber(rem)
|
rem = tonumber(rem)
|
||||||
tot = tonumber(tot)
|
tot = tonumber(tot)
|
||||||
|
|
Loading…
Reference in New Issue