#647 cleanup/optimizations
This commit is contained in:
@@ -22,12 +22,7 @@ local _dbus = {
|
|||||||
-- evaluate and publish system health status
|
-- evaluate and publish system health status
|
||||||
local function eval_status()
|
local function eval_status()
|
||||||
local ok = not _dbus.degraded
|
local ok = not _dbus.degraded
|
||||||
|
for _, v in pairs(_dbus.coroutines) do ok = ok and v end
|
||||||
if ok then
|
|
||||||
for _, v in pairs(_dbus.coroutines) do
|
|
||||||
ok = ok and v
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
databus.ps.publish("status", ok)
|
databus.ps.publish("status", ok)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -16,12 +16,7 @@ local _dbus = {
|
|||||||
-- evaluate and publish system health status
|
-- evaluate and publish system health status
|
||||||
local function eval_status()
|
local function eval_status()
|
||||||
local ok = _dbus.wd_modem and _dbus.wl_modem
|
local ok = _dbus.wd_modem and _dbus.wl_modem
|
||||||
|
for _, v in pairs(_dbus.coroutines) do ok = ok and v end
|
||||||
if ok then
|
|
||||||
for _, v in pairs(_dbus.coroutines) do
|
|
||||||
ok = ok and v
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
databus.ps.publish("status", ok)
|
databus.ps.publish("status", ok)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user