This commit is contained in:
kepler155c
2018-10-27 23:47:28 -04:00
parent dc6af1d0c3
commit 763f6bb27a
4 changed files with 23 additions and 12 deletions

View File

@@ -33,14 +33,20 @@ debug('%s: %s', e, tostring(dev))
end
function NetworkedAdapter:showStorage()
debug('Storage:')
local t = { }
for k,v in pairs(self.remoteDefaults) do
local online = v.adapter and v.adapter.online
if not online then
debug(' %s: %s', online and ' online' or 'offline', k)
table.insert(t, k)
end
end
debug('')
if #t > 0 then
debug('Storage:')
for _, k in pairs(t) do
debug(' %s: %s', online and ' online' or 'offline', k)
end
debug('')
end
end
function NetworkedAdapter:setOnline(online)