mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-10 00:42:14 +00:00
parent
43fa8cf6e9
commit
8a62783e2d
10 changed files with 0 additions and 223 deletions
|
|
@ -60,29 +60,3 @@ OperatingSystem* OperatingSystemHash::get(OSType os_type, bool is_inline_call) {
|
|||
return(head);
|
||||
}
|
||||
}
|
||||
|
||||
/* ************************************ */
|
||||
|
||||
#ifdef AS_DEBUG
|
||||
|
||||
static bool print_oses(GenericHashEntry *_as, void *user_data) {
|
||||
OperatingSystem *as = (OperatingSystem*)_as;
|
||||
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "Operating System [os: %u] [num_uses: %u]",
|
||||
as->get_os(),
|
||||
os->getNumHosts());
|
||||
|
||||
return(false); /* false = keep on walking */
|
||||
}
|
||||
|
||||
/* ************************************ */
|
||||
|
||||
void OperatingSystemHash::printHash() {
|
||||
disablePurge();
|
||||
|
||||
walk(print_oses, NULL);
|
||||
|
||||
enablePurge();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue