mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-19 16:13:43 +00:00
Refactors hash entry state setters to ease override
This commit is contained in:
parent
0e3b359f0f
commit
f110602192
8 changed files with 40 additions and 10 deletions
|
|
@ -26,7 +26,7 @@
|
|||
GenericHashEntry::GenericHashEntry(NetworkInterface *_iface) {
|
||||
hash_next = NULL, iface = _iface, first_seen = last_seen = 0, num_uses = 0;
|
||||
|
||||
hash_entry_state = hash_entry_state_active;
|
||||
set_hash_entry_state_active();
|
||||
|
||||
if(iface && iface->getTimeLastPktRcvd() > 0)
|
||||
first_seen = last_seen = iface->getTimeLastPktRcvd();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue