Implements ul/dl thpts in C and reworks the footer to use them

This commit is contained in:
Simone Mainardi 2019-09-03 18:56:23 +02:00
parent f7dfe812b8
commit b86378bca3
7 changed files with 215 additions and 205 deletions

View file

@ -3037,6 +3037,7 @@ void NetworkInterface::periodicStatsUpdate() {
bytes_thpt.updateStats(&tv, getNumBytes());
pkts_thpt.updateStats(&tv, getNumPackets());
ethStats.updateStats(&tv);
if(!isView() && flows_hash) /* View Interfaces don't have flows, they just walk flows of their 'viewed' peers */
walker(&begin_slot, walk_all, walker_flows, flow_update_hosts_stats, (void*)&tv, true);