Fixed node others creation in ASN Sankey (#9412)

This commit is contained in:
Manuel Ceroni 2025-07-21 09:45:03 +02:00 committed by GitHub
parent 0ee6d2afed
commit 7782f7c1ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,7 +247,7 @@ local function top_max_nodes(l, criteria)
if criteria == traffic_criteria.INGRESS then
table.sort(list, function(a, b) return a.sent > b.sent end)
else
table.sort(list, function(a, b) return a.sent > b.sent end)
table.sort(list, function(a, b) return a.rcvd > b.rcvd end)
end
local reduced_transit = {}
for i = 1, math.min(max_nodes-1, table.len(list)) do