mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implemented flow packets interarrival stats
This commit is contained in:
parent
b6eb2bc36c
commit
c3d2ecc749
4 changed files with 97 additions and 9 deletions
|
|
@ -673,6 +673,18 @@ function secondsToTime(seconds)
|
|||
return msg
|
||||
end
|
||||
|
||||
function msToTime(ms)
|
||||
if(ms > 1000) then
|
||||
return secondsToTime(ms/1000)
|
||||
else
|
||||
if(ms < 1) then
|
||||
return("< 1 ms")
|
||||
else
|
||||
return(round(ms, 4).." ms")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function starts(String,Start)
|
||||
return string.sub(String,1,string.len(Start))==Start
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue