mirror of https://github.com/lcpz/lain.git
little fix
This commit is contained in:
parent
528d51fbc2
commit
88b5c74a59
|
@ -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