mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Add smart window info
This commit is contained in:
parent
b43b72df7e
commit
f6e6004a96
3 changed files with 46 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ end
|
|||
|
||||
print("</td></tr>\n")
|
||||
|
||||
-- Traffic Recording stats
|
||||
|
||||
local stats = recording_utils.stats(master_ifid)
|
||||
|
||||
local first_epoch = stats['FirstDumpedEpoch']
|
||||
|
|
@ -101,6 +103,26 @@ if stats['Dropped'] ~= nil then
|
|||
print("<tr><th nowrap>"..i18n("if_stats_overview.dropped_packets").."</th><td>"..stats['Dropped'].." "..i18n("pkts").."</td></tr>\n")
|
||||
end
|
||||
|
||||
-- Smart Recording stats
|
||||
|
||||
stats = recording_utils.smartStats(master_ifid)
|
||||
|
||||
first_epoch = stats['FirstDumpedEpoch']
|
||||
last_epoch = stats['LastDumpedEpoch']
|
||||
|
||||
if first_epoch ~= nil then
|
||||
print("<tr><th width='15%' nowrap>"..i18n("traffic_recording.smart_window").."</th><td>")
|
||||
if first_epoch ~= nil and last_epoch ~= nil and
|
||||
first_epoch > 0 and last_epoch > 0 then
|
||||
print(formatEpoch(first_epoch).." - "..formatEpoch(last_epoch))
|
||||
else
|
||||
print(i18n("traffic_recording.no_file"))
|
||||
end
|
||||
print("</td></tr>\n")
|
||||
end
|
||||
|
||||
-- Custom Provider
|
||||
|
||||
if custom_provider and running then
|
||||
local warn = ''
|
||||
|
||||
|
|
@ -111,6 +133,8 @@ if custom_provider and running then
|
|||
print("<tr><th nowrap>"..i18n("traffic_recording.traffic_extractions").."</th><td>"..warn..extraction_checks_msg.."</td></tr>\n")
|
||||
end
|
||||
|
||||
-- Logs
|
||||
|
||||
print("<tr><th nowrap>"..i18n("about.last_log").."</th><td><code>\n")
|
||||
|
||||
local log = recording_utils.log(master_ifid, 32)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue