mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Replace calls to getResolvedAddress with host2name
This commit is contained in:
parent
4b1184acdb
commit
02c36d4140
17 changed files with 73 additions and 45 deletions
|
|
@ -39,7 +39,9 @@ for key, value in pairs(hosts_stats) do
|
|||
if(val > threshold) then
|
||||
|
||||
if(num > 0) then print(",\n") else print("\n") end
|
||||
res = getResolvedAddress(hostkey2hostinfo(key))
|
||||
|
||||
local hinfo = hostkey2hostinfo(key)
|
||||
name = host2name(hinfo["host"], hinfo["vlan"])
|
||||
|
||||
--if(res == nil) then res = "AAA" end
|
||||
print("{ \"name\": \"" .. res .. "\", \"size\": " .. (hosts_stats[key]["bytes.sent"]+hosts_stats[key]["bytes.rcvd"]).. "} ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue