mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Adds numHosts to hosts retrieval for proper pagination
numHosts was suppressed in an earlier commit but this caused issues with pagination of results.
This commit is contained in:
parent
fe5c6377aa
commit
13875ec189
16 changed files with 35 additions and 21 deletions
|
|
@ -110,6 +110,7 @@ if ((num == 0) and (tracked_host == nil)) then
|
|||
-- Then we take the host with most traffic and print flows belonging to it
|
||||
|
||||
hosts_stats = interface.getHostsInfo()
|
||||
hosts_stats = hosts_stats["hosts"]
|
||||
for key, value in pairs(hosts_stats) do
|
||||
value = hosts_stats[key]["traffic"]
|
||||
if((value ~= nil) and (value > top_value)) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue