mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add compactTime
This commit is contained in:
parent
d67e1da455
commit
df4b23959c
1 changed files with 8 additions and 0 deletions
|
|
@ -974,6 +974,14 @@ function secondsToTime(seconds)
|
|||
return msg
|
||||
end
|
||||
|
||||
function compactTime(seconds)
|
||||
if seconds >= 60 then
|
||||
seconds = seconds - seconds % 60
|
||||
end
|
||||
|
||||
return secondsToTime(seconds)
|
||||
end
|
||||
|
||||
function msToTime(ms)
|
||||
if(ms > 1000) then
|
||||
return secondsToTime(ms/1000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue