Skip to content

Commit

Permalink
Fix config reload error with small PCAPs
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-f committed Dec 21, 2018
1 parent 8a6272c commit 90437ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LuaEngine.cpp
Expand Up @@ -1709,8 +1709,8 @@ static int ntop_reloadCustomCategories(lua_State* vm) {
_usleep(5e5);
}

if(j == max_wait) {
ntop->getTrace()->traceEvent(TRACE_ERROR, "Interface didn't reload configugration on time [iface: %s]", iface->get_name());
if((j == max_wait) && (!iface->read_from_pcap_dump() /* reload with small PCAP files may not occur */)) {
ntop->getTrace()->traceEvent(TRACE_ERROR, "Interface didn't reload custom categories on time [iface: %s]", iface->get_name());
}
}
}
Expand Down

0 comments on commit 90437ee

Please sign in to comment.