mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix alert_remote_access format
This commit is contained in:
parent
8d1edf226e
commit
52a483142b
1 changed files with 3 additions and 1 deletions
|
|
@ -35,7 +35,9 @@ end
|
|||
-- #######################################################
|
||||
|
||||
function alert_remote_access.format(ifid, alert, alert_type_params)
|
||||
local time = alert["tstamp_end"] - alert["tstamp"]
|
||||
local now = os.time()
|
||||
local tstamp_end = alert["tstamp_end"] or now
|
||||
local time = tstamp_end - alert["tstamp"]
|
||||
|
||||
if time == 0 then
|
||||
time = "< 1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue