Removes unnecessary numFlows counter

This commit is contained in:
Simone Mainardi 2019-10-27 12:43:10 +01:00
parent b8b6c7fac7
commit ca657b2592
3 changed files with 3 additions and 9 deletions

View file

@ -148,7 +148,7 @@ class NetworkInterface : public AlertableEntity {
pthread_t pollLoop;
bool pollLoopCreated, has_too_many_hosts, has_too_many_flows, mtuWarningShown;
bool slow_stats_update, flow_dump_disabled;
u_int32_t ifSpeed, numL2Devices, numFlows, numHosts, numLocalHosts, scalingFactor;
u_int32_t ifSpeed, numL2Devices, numHosts, numLocalHosts, scalingFactor;
u_int64_t checkpointPktCount, checkpointBytesCount, checkpointPktDropCount; /* Those will hold counters at checkpoints */
u_int16_t ifMTU;
int cpu_affinity; /**< Index of physical core where the network interface works. */
@ -684,8 +684,6 @@ class NetworkInterface : public AlertableEntity {
bool getCountryInfo(lua_State* vm, const char *country);
bool getVLANInfo(lua_State* vm, u_int16_t vlan_id);
bool getArpStatsMatrixInfo(lua_State* vm);
inline void incNumFlows() { numFlows++; };
inline void decNumFlows() { numFlows--; };
inline void incNumHosts(bool local) { if(local) numLocalHosts++; numHosts++; };
inline void decNumHosts(bool local) { if(local) numLocalHosts--; numHosts--; };
inline void incNumL2Devices() { numL2Devices++; }