mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Adds bytes and packets throughput to NetworkInterface
This commit is contained in:
parent
8bb12c3ede
commit
a5b5510290
4 changed files with 13 additions and 1 deletions
|
|
@ -71,6 +71,9 @@ function dumpInterfaceStats(ifid)
|
|||
res["bytes"] = ifstats.stats_since_reset.bytes
|
||||
res["drops"] = ifstats.stats_since_reset.drops
|
||||
|
||||
res["throughput_bps"] = ifstats.stats.throughput_bps;
|
||||
res["throughput_pps"] = ifstats.stats.throughput_pps;
|
||||
|
||||
if prefs.is_dump_flows_enabled == true then
|
||||
res["flow_export_drops"] = ifstats.stats_since_reset.flow_export_drops
|
||||
res["flow_export_rate"] = ifstats.stats_since_reset.flow_export_rate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue