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:
Simone Mainardi 2016-08-25 19:05:35 +02:00
parent fe5c6377aa
commit 13875ec189
16 changed files with 35 additions and 21 deletions

View file

@ -11,6 +11,7 @@ sendHTTPHeader('text/html; charset=iso-8859-1')
function getNetworkStats(network)
local hosts_stats = interface.getHostsInfo()
hosts_stats = hosts_stats["hosts"]
my_network = nil
@ -108,4 +109,4 @@ else
print("\" } ")
end
end