Format boolean custom fields

This commit is contained in:
Alfredo Cardigliano 2019-10-16 12:51:04 +02:00
parent 78fc8e56e4
commit bfdf5773d3

View file

@ -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