mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Format boolean custom fields
This commit is contained in:
parent
78fc8e56e4
commit
bfdf5773d3
1 changed files with 9 additions and 0 deletions
|
|
@ -301,6 +301,15 @@ function handleCustomFlowField(key, value, snmpdevice)
|
|||
end
|
||||
|
||||
-- Unformatted value
|
||||
|
||||
if (type(value) == "boolean") then
|
||||
if (value) then
|
||||
value = i18n("yes")
|
||||
else
|
||||
value = i18n("no")
|
||||
end
|
||||
end
|
||||
|
||||
return value
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue