mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Show sent and received traffic stats in the interface overiview page
This commit is contained in:
parent
ad013d0a99
commit
be1d52020a
3 changed files with 22 additions and 2 deletions
|
|
@ -106,6 +106,8 @@ function dumpInterfaceStats(interface_name)
|
|||
res["remote2local"] = ifstats["localstats"]["bytes"]["remote2local"]
|
||||
res["bytes_upload"] = ifstats["eth"]["egress"]["bytes"]
|
||||
res["bytes_download"] = ifstats["eth"]["ingress"]["bytes"]
|
||||
res["packets_upload"] = ifstats["eth"]["egress"]["packets"]
|
||||
res["packets_download"] = ifstats["eth"]["ingress"]["packets"]
|
||||
|
||||
if ntop.isnEdge() and ifstats.type == "netfilter" and ifstats.netfilter then
|
||||
res["netfilter"] = ifstats.netfilter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue