View interfaces updates and comments

This commit is contained in:
Simone Mainardi 2019-10-30 11:58:05 +01:00
parent e8277e46ff
commit 09b5ec032f
3 changed files with 14 additions and 5 deletions

View file

@ -207,11 +207,7 @@ void ThreadedActivity::runScript(char *script_path, NetworkInterface *iface) {
if(!iface) iface = ntop->getSystemInterface();
if(strcmp(path, SHUTDOWN_SCRIPT_PATH) && isTerminating()) return;
if(iface->isViewed() && exclude_viewed_interfaces) {
ntop->getTrace()->traceEvent(TRACE_ERROR, "Skipping viewed [%s]", iface->get_name());
return;
}
if(iface->isViewed() && exclude_viewed_interfaces) return;
#ifdef THREADED_DEBUG
ntop->getTrace()->traceEvent(TRACE_WARNING, "[%p] Running %s", this, path);