Sorting ICMP table entries to avoid shuffling on every table update

This commit is contained in:
Alfredo Cardigliano 2019-07-12 11:11:58 +02:00
parent ed5c930df6
commit 85f4266f14

View file

@ -44,7 +44,7 @@ if(stats ~= nil) then
if(k == "ICMPv4") then is_v4 = true else is_v4 = false end
for key, value in pairs(icmp) do
for key, value in pairsByKeys(icmp) do
local keys = string.split(key, ",")
local icmp_type = keys[1]
local icmp_value = keys[2]