mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Handle possibly nil tables
This commit is contained in:
parent
2459794216
commit
8a8157a015
3 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ function checkInterfaceAlerts(granularity)
|
|||
local info = interface.getStats()
|
||||
local ifid = interface.getId()
|
||||
local interface_key = "iface_"..ifid
|
||||
local interface_config = config_alerts[interface_key]
|
||||
local interface_config = config_alerts[interface_key] or {}
|
||||
local global_config = config_alerts["interfaces"] or {}
|
||||
local has_configured_alerts = (table.len(interface_config or global_config) > 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue