Skip to content

Commit

Permalink
Fix column name in mac list page.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoMaio committed May 14, 2024
1 parent cdbc054 commit 6c8198e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/lua/modules/mac_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,12 @@ function mac2record(mac)

record["column_traffic"] = bytesToSize(mac["bytes.sent"] + mac["bytes.rcvd"])

record["column_name"] = getDeviceName(mac["mac"], true)
local name = getDeviceName(mac["mac"], true)

if (isEmptyString(name)) then
name = printMacHosts(mac.mac)
end
record["column_name"] = name

return record
end
Expand Down

0 comments on commit 6c8198e

Please sign in to comment.