mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-31 21:30:27 +00:00
Adds error when the periodic hash tables update takes too long
This commit is contained in:
parent
bf295f88cf
commit
5db985df59
1 changed files with 4 additions and 1 deletions
|
|
@ -2878,7 +2878,7 @@ static void generic_periodic_hash_entry_state_update(GenericHashEntry *node, voi
|
|||
|
||||
void NetworkInterface::periodicHTStateUpdate(time_t deadline) {
|
||||
#if 0
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "updating hash tables [%s]", get_name());
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "Updating hash tables [%s]", get_name());
|
||||
#endif
|
||||
struct timeval tv;
|
||||
periodic_ht_state_update_user_data_t periodic_ht_state_update_user_data;
|
||||
|
|
@ -2910,6 +2910,9 @@ void NetworkInterface::periodicHTStateUpdate(time_t deadline) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(time(NULL) > deadline)
|
||||
ntop->getTrace()->traceEvent(TRACE_ERROR, "Deadline exceeded [%s][%s]", __FUNCTION__, get_name());
|
||||
}
|
||||
|
||||
/* **************************************************** */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue