mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Improvements to reduce un-necessary data returned to lua from C++
This commit is contained in:
parent
a497434a41
commit
8dc4561faf
12 changed files with 370 additions and 388 deletions
|
|
@ -74,7 +74,7 @@ end
|
|||
-- ################################################
|
||||
|
||||
function getMacHosts(mac, additional_ip)
|
||||
local mac_hosts = interface.getMacHosts(mac)
|
||||
local mac_hosts = interface.getMacHosts(mac, false)
|
||||
local num_hosts = table.len(mac_hosts)
|
||||
local url, hosts
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ function getMacHosts(mac, additional_ip)
|
|||
hosts = i18n("n_more_objects", {
|
||||
label = first_host["ip"],
|
||||
num = num_hosts,
|
||||
object = i18n("hosts")
|
||||
object = string.lower(i18n("hosts"))
|
||||
})
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue