mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Minor cosmetic changes
Reworked CSRF error message
This commit is contained in:
parent
e6e3f065b4
commit
71a0993022
6 changed files with 60 additions and 39 deletions
|
|
@ -123,9 +123,14 @@ for _key,_value in ipairs(alerts) do
|
|||
alert_entity_val = ""
|
||||
end
|
||||
-- tprint(alert_entity)
|
||||
-- tprint(alert_entity_val)
|
||||
column_date = os.date("%c", _value["alert_tstamp"])
|
||||
-- tprint(alert_entity_val)
|
||||
local tdiff = os.time()-_value["alert_tstamp"]
|
||||
|
||||
if(tdiff < 3600) then
|
||||
column_date = secondsToTime(tdiff).." ago"
|
||||
else
|
||||
column_date = os.date("%c", _value["alert_tstamp"])
|
||||
end
|
||||
column_duration = "-"
|
||||
if engaged == true then
|
||||
column_duration = secondsToTime(os.time() - tonumber(_value["alert_tstamp"]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue