mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix top talkers when mac address is used as LBD hosts ID
This commit is contained in:
parent
a892c825c0
commit
387543f8e9
8 changed files with 83 additions and 16 deletions
|
|
@ -3544,6 +3544,26 @@ end
|
|||
|
||||
-- ###########################################
|
||||
|
||||
function visualTsKey(tskey)
|
||||
if ends(tskey, "_v4") or ends(tskey, "_v6") then
|
||||
local ver = string.sub(tskey, string.len(tskey)-1, string.len(tskey))
|
||||
local address = string.sub(tskey, 1, string.len(tskey)-3)
|
||||
local visual_addr
|
||||
|
||||
if ver == "v4" then
|
||||
visual_addr = address
|
||||
else
|
||||
visual_addr = address .. " (" .. ver ..")"
|
||||
end
|
||||
|
||||
return visual_addr
|
||||
end
|
||||
|
||||
return tskey
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
-- Returns the size of a folder (size is in bytes)
|
||||
function getFolderSize(path)
|
||||
local size = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue