Added ability to report ZMQ bps/pps as exported in latest nProbe

This commit is contained in:
Luca Deri 2016-04-24 15:05:06 +02:00
parent 08c908be2f
commit 89ea597be3
5 changed files with 22 additions and 11 deletions

View file

@ -67,6 +67,7 @@ class NetworkInterface {
nDPIStats ndpiStats;
PacketStats pktStats;
FlowHash *flows_hash; /**< Hash used to memorize the flows information.*/
u_int32_t last_remote_pps, last_remote_bps;
/* Second update */
u_int64_t lastSecTraffic,
@ -305,7 +306,8 @@ class NetworkInterface {
#endif
void setRemoteStats(char *name, char *address, u_int32_t speedMbit,
char *remoteProbeAddress, char *remoteProbePublicAddress,
u_int64_t remBytes, u_int64_t remPkts, u_int32_t remote_time);
u_int64_t remBytes, u_int64_t remPkts, u_int32_t remote_time,
u_int32_t last_pps, u_int32_t last_bps);
void startDBLoop() { if(db) db->startDBLoop(); };
};