Show sent and received traffic stats in the interface overiview page

This commit is contained in:
emanuele-f 2019-01-15 17:28:33 +01:00
parent ad013d0a99
commit be1d52020a
3 changed files with 22 additions and 2 deletions

View file

@ -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