mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Continuous recoridng info the the main interface page (fix #6354)
This commit is contained in:
parent
52ddbd1da1
commit
727a2a3559
4 changed files with 74 additions and 37 deletions
|
|
@ -815,6 +815,20 @@ function recording_utils.stats(ifid)
|
|||
end
|
||||
end
|
||||
|
||||
if stats['FirstDumpedEpoch'] ~= nil then
|
||||
stats['FirstDumpedEpoch'] = tonumber(stats['FirstDumpedEpoch'])
|
||||
end
|
||||
|
||||
if stats['LastDumpedEpoch'] ~= nil then
|
||||
stats['LastDumpedEpoch'] = tonumber(stats['LastDumpedEpoch'])
|
||||
end
|
||||
|
||||
if stats['Duration'] ~= nil then
|
||||
local u = split(stats['Duration'], ':');
|
||||
stats['DurationEpoch'] = tonumber(u[1])*24*60*60+tonumber(u[2])*60*60+tonumber(u[3])*60+u[4]
|
||||
stats['StartEpoch'] = os.time() - stats['DurationEpoch']
|
||||
end
|
||||
|
||||
return stats
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue