mirror of https://github.com/lcpz/lain.git
little fix
This commit is contained in:
parent
f8b37d5088
commit
5d6e2fa3d1
|
@ -92,7 +92,7 @@ local function worker(args)
|
||||||
if rate ~= nil and ratev ~= nil then
|
if rate ~= nil and ratev ~= nil then
|
||||||
bat_now.watt = string.format("%.2fW", (rate * ratev) / 1e12)
|
bat_now.watt = string.format("%.2fW", (rate * ratev) / 1e12)
|
||||||
else
|
else
|
||||||
bat_not.watt = "N/A"
|
bat_now.watt = "N/A"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- notifications for low and critical states
|
-- notifications for low and critical states
|
||||||
|
|
Loading…
Reference in New Issue