mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implements ul/dl thpts in C and reworks the footer to use them
This commit is contained in:
parent
f7dfe812b8
commit
b86378bca3
7 changed files with 215 additions and 205 deletions
|
|
@ -124,6 +124,19 @@ function dumpInterfaceStats(ifid)
|
|||
res["packets_upload"] = ifstats["eth"]["egress"]["packets"]
|
||||
res["packets_download"] = ifstats["eth"]["ingress"]["packets"]
|
||||
|
||||
local ingress_thpt = ifstats["eth"]["ingress"]["throughput"]
|
||||
local egress_thpt = ifstats["eth"]["egress"]["throughput"]
|
||||
res["throughput"] = {
|
||||
download = {
|
||||
bps = ingress_thpt["bps"], bps_trend = ingress_thpt["bps_trend"],
|
||||
pps = ingress_thpt["pps"], pps_trend = ingress_thpt["pps_trend"]
|
||||
},
|
||||
upload = {
|
||||
bps = egress_thpt["bps"], bps_trend = egress_thpt["bps_trend"],
|
||||
pps = egress_thpt["pps"], pps_trend = egress_thpt["pps_trend"]
|
||||
},
|
||||
}
|
||||
|
||||
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