mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added semi-permanent thpt stats to interface
This commit is contained in:
parent
6ff500f9f8
commit
be9d3b5560
9 changed files with 144 additions and 6 deletions
|
|
@ -188,6 +188,14 @@ function dumpInterfaceStats(ifid)
|
|||
},
|
||||
}
|
||||
|
||||
local download_stats = ifstats["stats"]["download_stats"]
|
||||
local upload_stats = ifstats["stats"]["upload_stats"]
|
||||
|
||||
res["download_upload_chart"] = {
|
||||
download = download_stats,
|
||||
upload = upload_stats,
|
||||
}
|
||||
|
||||
if ntop.isnEdge() and ifstats.type == "netfilter" and ifstats.netfilter then
|
||||
res["netfilter"] = ifstats.netfilter
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue