Adds bytes and packets throughput to NetworkInterface

This commit is contained in:
Simone Mainardi 2019-09-03 17:16:47 +02:00
parent 8bb12c3ede
commit a5b5510290
4 changed files with 13 additions and 1 deletions

View file

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