mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-11 02:26:43 +00:00
Reimplemented view: interface, and Paginator code.
Minor code cleanup
This commit is contained in:
parent
650ce6e202
commit
274921ee5c
34 changed files with 809 additions and 359 deletions
|
|
@ -133,11 +133,11 @@ bool GenericHash::remove(GenericHashEntry *h) {
|
|||
|
||||
/* ************************************ */
|
||||
|
||||
void GenericHash::walk(bool (*walker)(GenericHashEntry *h, void *user_data), void *user_data) {
|
||||
bool GenericHash::walk(bool (*walker)(GenericHashEntry *h, void *user_data), void *user_data) {
|
||||
bool found = false;
|
||||
|
||||
if(ntop->getGlobals()->isShutdown())
|
||||
return;
|
||||
return(found);
|
||||
|
||||
for(u_int hash_id = 0; hash_id < num_hashes; hash_id++) {
|
||||
if(table[hash_id] != NULL) {
|
||||
|
|
@ -164,6 +164,8 @@ void GenericHash::walk(bool (*walker)(GenericHashEntry *h, void *user_data), voi
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return(found);
|
||||
}
|
||||
|
||||
/* ************************************ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue