Extend valid DNS query length

Previously an alert was generated with queries like p4-eejjahupdxuys-rylkjv2los2h24a4-514713-s1-v6exp3-v4.metric.gstatic.com
This commit is contained in:
emanuele-f 2017-10-12 10:50:40 +02:00
parent 91c4b5decf
commit d53d777c81
2 changed files with 4 additions and 2 deletions

View file

@ -977,7 +977,9 @@ function secondsToTime(seconds)
end
function compactTime(seconds)
if seconds >= 60 then
if seconds == 0 then
return "< 1 sec"
elseif seconds >= 60 then
seconds = seconds - seconds % 60
end