mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Minor fix that lead to a warning
This commit is contained in:
parent
f43114bf2c
commit
19fcdc9ee8
1 changed files with 3 additions and 3 deletions
|
|
@ -44,10 +44,10 @@ function format_utils.secondsToTime(seconds)
|
|||
if(string.len(msg) > 0) then msg = msg .. ", " end
|
||||
|
||||
if(hours > 0) then
|
||||
msg = msg .. string.format("%02d:", hours)
|
||||
msg = msg .. string.format("%02d:", truncate(hours))
|
||||
end
|
||||
msg = msg .. string.format("%02d:", minutes)
|
||||
msg = msg .. string.format("%02d", sec);
|
||||
msg = msg .. string.format("%02d:", truncate(minutes))
|
||||
msg = msg .. string.format("%02d", truncate(sec));
|
||||
|
||||
return msg
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue