mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Optimize stats update in Hosts page (#6372)
This commit is contained in:
parent
8032fb36ae
commit
3b0a3041a7
4 changed files with 90 additions and 50 deletions
|
|
@ -2395,12 +2395,17 @@ end
|
|||
function hostkey2hostinfo(key)
|
||||
local host = {}
|
||||
local info = split(key,"@")
|
||||
if(info[1] ~= nil) then host["host"] = info[1] end
|
||||
|
||||
if(info[1] ~= nil) then
|
||||
host["host"] = info[1]
|
||||
end
|
||||
|
||||
if(info[2] ~= nil) then
|
||||
host["vlan"] = tonumber(info[2])
|
||||
else
|
||||
host["vlan"] = 0
|
||||
end
|
||||
|
||||
return host
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue