This is a companion commit of Pro commit
commit af8e50a481ba01eae04968757a92f01b80347eb3
Author: Simone Mainardi
Date: Fri Mar 24 13:07:05 2017 +0100
Implements report Top-K heuristics
An heuristics to reduce the size of top talkers is implemented
to prevent errors such as:
[/usr/share/ntopng/scripts/lua/pro/get_from_top_talkers_db.lua][not enough memory]
Overal Top Talkers are retrieved with just one single
MySQL query and include both ipv4 and ipv4. Top talkers
can be visualized on a per-interface and per-host basis,
and can be sliced and diced.
Top Talkers and Top applications can be retrieved via MySQL
both interface-wide and per-host. A couple of tabs, namely
"Top Talkers" and "Top Applications" become available in the
historical page of interfaces and hosts. Upon focus of each
tab, an ajax request is triggered and data is fetched from MySQL.
TODO: interface wide top-talkers are retrieved from sqlite and
need to be moved to mysql.