mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Possible fix for nil timeseries (#7611)
This commit is contained in:
parent
135cf8fcc4
commit
7efe9fb4dd
2 changed files with 8 additions and 2 deletions
|
|
@ -916,7 +916,10 @@ function driver:timeseries_top(options, top_tags)
|
|||
local snmp_cached_dev = require "snmp_cached_dev"
|
||||
local cached_device = snmp_cached_dev:create(options.tags.device)
|
||||
local ifindex = available_tags[top_item][1].if_index
|
||||
local ext_label = shortenString(snmp_utils.get_snmp_interface_label(cached_device["interfaces"][ifindex]), 64)
|
||||
local ext_label = nil
|
||||
if cached_device then
|
||||
ext_label = shortenString(snmp_utils.get_snmp_interface_label(cached_device["interfaces"][ifindex]), 64)
|
||||
end
|
||||
|
||||
count = table.len(available_series[top_item].data)
|
||||
top_series[#top_series + 1] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue