mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +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
|
|
@ -66,6 +66,7 @@ end
|
|||
function getTalkers(ifname, vlan, unit, mode, max_num_entries, sort_direction)
|
||||
interface.select(ifname)
|
||||
hosts_stats = interface.getHostsInfo()
|
||||
hosts_stats = hosts_stats["hosts"]
|
||||
|
||||
hosts = { }
|
||||
for key, value in pairs(hosts_stats) do
|
||||
|
|
@ -102,6 +103,7 @@ end
|
|||
function getVLANTraffic(ifname, vlan, unit, mode, max_num_entries, sort_direction)
|
||||
interface.select(ifname)
|
||||
hosts_stats = interface.getHostsInfo()
|
||||
hosts_stats = hosts_stats["hosts"]
|
||||
|
||||
hosts = { }
|
||||
for key, value in pairs(hosts_stats) do
|
||||
|
|
@ -138,6 +140,7 @@ end
|
|||
function getASTraffic(ifname, vlan, as, unit, mode, max_num_entries, sort_direction)
|
||||
interface.select(ifname)
|
||||
hosts_stats = interface.getHostsInfo()
|
||||
hosts_stats = hosts_stats["hosts"]
|
||||
|
||||
hosts = { }
|
||||
for key, value in pairs(hosts_stats) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue