mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added interface TCP stats
This commit is contained in:
parent
60910a782e
commit
8b150132d2
9 changed files with 77 additions and 28 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue