mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added granularity to AlertableEntity
This commit is contained in:
parent
8ad9e6b336
commit
3e223849ba
9 changed files with 164 additions and 92 deletions
|
|
@ -3651,5 +3651,14 @@ function notify_ntopng_stop()
|
|||
notify_ntopng_status(false)
|
||||
end
|
||||
|
||||
-- See NetworkInterface::checkHostsAlerts()
|
||||
function granularity2id(granularity)
|
||||
if(granularity == "min") then return(0)
|
||||
elseif(granularity == "5mins") then return(1)
|
||||
elseif(granularity == "hour") then return(2)
|
||||
elseif(granularity == "day") then return(3)
|
||||
end
|
||||
end
|
||||
|
||||
-- DEBUG: uncomment this to test
|
||||
--~ scanAlerts("min", "wlan0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue