mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 08:50:12 +00:00
Avoid loading am hosts for unavailable measurements
This commit is contained in:
parent
7191f3e1a5
commit
f323aa741c
1 changed files with 6 additions and 1 deletions
|
|
@ -318,7 +318,12 @@ function am_utils.getHosts(config_only, granularity)
|
|||
local host = deserializeAmPrefs(host_key, val, config_only)
|
||||
|
||||
if host and ((granularity == nil) or (host.granularity == granularity)) then
|
||||
rv[host_key] = host
|
||||
-- Ensure that the measurement is still available
|
||||
local m_info = am_utils.getMeasurementInfo(host.measurement)
|
||||
|
||||
if(m_info ~= nil) then
|
||||
rv[host_key] = host
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue