mirror of
https://github.com/ntop/ntopng.git
synced 2026-06-01 22:42:06 +00:00
View interfaces updates and comments
This commit is contained in:
parent
e8277e46ff
commit
09b5ec032f
3 changed files with 14 additions and 5 deletions
|
|
@ -2852,12 +2852,18 @@ void NetworkInterface::generic_periodic_hash_entry_state_update(GenericHashEntry
|
|||
|
||||
node->periodic_hash_entry_state_update(user_data, quick_update);
|
||||
|
||||
/* If this is a viewed interface, it is necessary to also call this method
|
||||
for the overlying view interface to make sure its counters (e.g., hosts, ases, vlans)
|
||||
are properly updated. There's no need to lock or syncronize ad it is the view which
|
||||
triggers this call for every viewed interface sequentially. */
|
||||
if(iface->isViewed())
|
||||
iface->viewedBy()->generic_periodic_hash_entry_state_update(node, user_data);
|
||||
}
|
||||
|
||||
/* **************************************************** */
|
||||
|
||||
/* For viewed interfaces, this method is executed by the ViewInterface for each
|
||||
of its underlying viewed interfaces. */
|
||||
void NetworkInterface::periodicHTStateUpdate(time_t deadline, lua_State* vm) {
|
||||
#if 0
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "Updating hash tables [%s]", get_name());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue