mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Show upload/download in footer chart
Rx and Tx is not always available. If it is not, the chart is hidden.
This commit is contained in:
parent
21fbc9867f
commit
123743d49c
4 changed files with 42 additions and 69 deletions
|
|
@ -106,11 +106,8 @@ function dumpInterfaceStats(interface_name)
|
|||
|
||||
res["local2remote"] = ifstats["localstats"]["bytes"]["local2remote"]
|
||||
res["remote2local"] = ifstats["localstats"]["bytes"]["remote2local"]
|
||||
|
||||
if ntop.isnEdge() then
|
||||
res["bytes_upload"] = ifstats["eth"]["egress"]["bytes"]
|
||||
res["bytes_download"] = ifstats["eth"]["ingress"]["bytes"]
|
||||
end
|
||||
res["bytes_upload"] = ifstats["eth"]["egress"]["bytes"]
|
||||
res["bytes_download"] = ifstats["eth"]["ingress"]["bytes"]
|
||||
|
||||
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