Fixes flow partials for database dumps

This commit is contained in:
Simone Mainardi 2019-07-23 15:09:17 +02:00
parent e3aefdb603
commit 92bf42fa0d
3 changed files with 73 additions and 62 deletions

View file

@ -236,7 +236,7 @@ static bool viewed_flows_walker(GenericHashEntry *flow, void *user_data, bool *m
bool first_partial; /* Whether this is the first time the view is visiting this flow */
const IpAddress *cli_ip = f->get_cli_ip_addr(), *srv_ip = f->get_srv_ip_addr();
if(f->get_partial_traffic_stats(&partials, &first_partial)) {
if(f->get_partial_traffic_stats_view(&partials, &first_partial)) {
if(!cli_ip || !srv_ip)
ntop->getTrace()->traceEvent(TRACE_ERROR, "Unable to get flow hosts. Out of memory? Expect issues.");