Fixes incorrect labels shown in the sflow charts

This commit is contained in:
Matteo Biscosi 2024-07-31 11:18:33 +02:00
parent d4070206b1
commit 5de1fea07b
3 changed files with 8 additions and 8 deletions

View file

@ -983,9 +983,9 @@ function driver:timeseries_top(options, top_tags)
local ext_label = nil
if cached_device then
ext_label = snmp_utils.get_snmp_interface_label(cached_device["interfaces"][ifindex])
if isEmptyString(ext_label) then
ext_label = ifindex
end
end
if isEmptyString(ext_label) then
ext_label = ifindex
end
count = table.len(available_series[top_item].data)