mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +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
|
|
@ -33,10 +33,8 @@ if(host_ip ~= nil) then
|
|||
else
|
||||
interface.select(ifname)
|
||||
hosts_stats = interface.getHostsInfo()
|
||||
num = 0
|
||||
for key, value in pairs(hosts_stats) do
|
||||
num = num + 1
|
||||
end
|
||||
num = hosts_stats["numHosts"]
|
||||
hosts_stats = hosts_stats["hosts"]
|
||||
end
|
||||
|
||||
if(num > 0) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue