Added interface TCP stats

This commit is contained in:
Luca Deri 2016-04-11 00:02:37 +02:00
parent 60910a782e
commit 8b150132d2
9 changed files with 77 additions and 28 deletions

View file

@ -54,6 +54,17 @@ function aggregateInterfaceStats(ifstats)
end
end
keys = { "tcpPacketStats" }
for _,key in pairs(keys) do
if(tot[key] == nil) then tot[key] = { } end
for k,v in pairs(_v[key]) do
--io.write(k.."\n")
if(tot[key][k] == nil) then tot[key][k] = 0 end
tot[key][k] = tot[key][k] + v
end
end
keys = { "localstats", "ndpi" }
for _,key in pairs(keys) do
-- io.write(key.."\n")