Added support for nDPI network handling in flows

This commit is contained in:
Luca Deri 2022-10-16 23:32:55 +02:00
parent fadd612d14
commit f20c762dec
5 changed files with 69 additions and 25 deletions

View file

@ -52,8 +52,13 @@ function format_utils.secondsToTime(seconds)
if(years > 0) then
days = days % 365
msg = years .. " year"
if(years > 1) then msg = msg .. "s" end
msg = years .. " "
if(years == 1) then
msg = msg .. i18n("year")
else
msg = msg .. i18n("years")
end
end
if(days > 0) then